Skip to content

Commit 255e422

Browse files
committed
Apply code review findings
1 parent 916780a commit 255e422

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.github/workflows/csv-coverage-timeseries.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ jobs:
2323
with:
2424
python-version: 3.8
2525
- name: Download CodeQL CLI
26-
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c
27-
with:
28-
repo: "github/codeql-cli-binaries"
29-
version: "latest"
30-
file: "codeql-linux64.zip"
31-
token: ${{ secrets.GITHUB_TOKEN }}
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
gh release download --repo "github/codeql-cli-binaries" --pattern "codeql-linux64.zip"
3230
- name: Unzip CodeQL CLI
3331
run: unzip -d codeql-cli codeql-linux64.zip
3432
- name: Build modeled package list

.github/workflows/csv-coverage.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,20 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
path: script
20-
- name: Clone self (github/codeql) at a given SHA for analysis
21-
if: github.event.inputs.qlModelShaOverride != ''
22-
uses: actions/checkout@v2
23-
with:
24-
path: codeqlModels
25-
ref: ${{ github.event.inputs.qlModelShaOverride }}
2620
- name: Clone self (github/codeql) for analysis
27-
if: github.event.inputs.qlModelShaOverride == ''
2821
uses: actions/checkout@v2
2922
with:
3023
path: codeqlModels
24+
ref: ${{ github.event.inputs.qlModelShaOverride || github.ref }}
3125
- name: Set up Python 3.8
3226
uses: actions/setup-python@v2
3327
with:
3428
python-version: 3.8
3529
- name: Download CodeQL CLI
36-
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c
37-
with:
38-
repo: "github/codeql-cli-binaries"
39-
version: "latest"
40-
file: "codeql-linux64.zip"
41-
token: ${{ secrets.GITHUB_TOKEN }}
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: |
33+
gh release download --repo "github/codeql-cli-binaries" --pattern "codeql-linux64.zip"
4234
- name: Unzip CodeQL CLI
4335
run: unzip -d codeql-cli codeql-linux64.zip
4436
- name: Build modeled package list

0 commit comments

Comments
 (0)