File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 20
20
- name : Checkout
21
21
uses : actions/checkout@v2
22
22
23
+ - name : Fetch CodeQL
24
+ env :
25
+ GITHUB_TOKEN : ${{ github.token }}
26
+ RUNNER_TEMP : ${{ runner.temp }}
27
+ run : |
28
+ cd $RUNNER_TEMP
29
+ gh release download "v${CODEQL_CLI_VERSION}" --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
30
+ unzip -q codeql-linux64.zip
31
+ echo "$RUNNER_TEMP/codeql/" >> $GITHUB_PATH
32
+
23
33
- name : Install Python
24
34
uses : actions/setup-python@v4
25
35
with :
@@ -35,21 +45,12 @@ jobs:
35
45
run : |
36
46
python3 scripts/upgrade-codeql-dependencies/upgrade-codeql-dependencies.py --cli-version "$CODEQL_CLI_VERSION"
37
47
38
- - name : Fetch CodeQL
39
- env :
40
- GITHUB_TOKEN : ${{ github.token }}
41
- RUNNER_TEMP : ${{ runner.temp }}
42
- run : |
43
- cd $RUNNER_TEMP
44
- gh release download "v${CODEQL_CLI_VERSION}" --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
45
- unzip -q codeql-linux64.zip
46
-
47
48
- name : Update CodeQL formatting based on new CLI version
48
49
env :
49
50
RUNNER_TEMP : ${{ runner.temp }}
50
51
run : |
51
- find cpp \( -name '*.ql' -or -name '*.qll' \) -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" $RUNNER_TEMP/codeql/ codeql query format --in-place
52
- find c \( -name '*.ql' -or -name '*.qll' \) -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" $RUNNER_TEMP/codeql/ codeql query format --in-place
52
+ find cpp \( -name '*.ql' -or -name '*.qll' \) -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql query format --in-place
53
+ find c \( -name '*.ql' -or -name '*.qll' \) -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql query format --in-place
53
54
54
55
- name : Create Pull Request
55
56
uses : peter-evans/create-pull-request@v3
You can’t perform that action at this time.
0 commit comments