Skip to content

Commit 3c47159

Browse files
authored
Merge pull request #9083 from github/henrymercer/fetch-codeql-with-gh-cli
Actions: Fetch CodeQL CLI using `gh` rather than third-party Action
2 parents f24364d + 71d1069 commit 3c47159

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/query-list.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,15 @@ jobs:
3030
with:
3131
python-version: 3.8
3232
- name: Download CodeQL CLI
33-
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c
34-
with:
35-
repo: "github/codeql-cli-binaries"
36-
version: "latest"
37-
file: "codeql-linux64.zip"
38-
token: ${{ secrets.GITHUB_TOKEN }}
33+
# Look under the `codeql` directory, as this is where we checked out the `github/codeql` repo
34+
uses: ./codeql/.github/actions/fetch-codeql
3935
- name: Unzip CodeQL CLI
4036
run: unzip -d codeql-cli codeql-linux64.zip
4137
- name: Build code scanning query list
4238
run: |
43-
PATH="$PATH:codeql-cli/codeql" python codeql/misc/scripts/generate-code-scanning-query-list.py > code-scanning-query-list.csv
39+
python codeql/misc/scripts/generate-code-scanning-query-list.py > code-scanning-query-list.csv
4440
- name: Upload code scanning query list
4541
uses: actions/upload-artifact@v3
4642
with:
4743
name: code-scanning-query-list
4844
path: code-scanning-query-list.csv
49-

0 commit comments

Comments
 (0)