Skip to content

Commit 01bf314

Browse files
authored
Merge pull request #1 from jhutchings1/querylist-action
Create query-list.yml
2 parents f5070c7 + b8a4ffa commit 01bf314

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/query-list.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build query list
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Clone self
13+
uses: actions/checkout@v2
14+
with:
15+
path: codeql
16+
- name: Clone go
17+
run: git clone https://github.com/github/codeql-go
18+
- name: Set up Python 3.8
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.8
22+
- name: Download CodeQL CLI
23+
uses: dsaltares/fetch-gh-release-asset@master
24+
with:
25+
repo: "github/codeql-cli-binaries"
26+
version: "latest"
27+
file: "codeql-linux64.zip"
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Unzip CodeQL CLI
30+
run: unzip -d cli codeql-linux64.zip
31+
- name: ls -R
32+
run: ls -R
33+
- name: Build query list
34+
run: |
35+
python ./codeql/misc/scripts/resolve-code-scanning-query-packs.py > output.csv
36+
- name: Upload query list
37+
uses: actions/upload-artifact@v2
38+
with:
39+
name: query-list
40+
path: output.csv
41+

0 commit comments

Comments
 (0)