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 2020 - name : Checkout
2121 uses : actions/checkout@v2
2222
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+
2333 - name : Install Python
2434 uses : actions/setup-python@v4
2535 with :
@@ -35,21 +45,12 @@ jobs:
3545 run : |
3646 python3 scripts/upgrade-codeql-dependencies/upgrade-codeql-dependencies.py --cli-version "$CODEQL_CLI_VERSION"
3747
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-
4748 - name : Update CodeQL formatting based on new CLI version
4849 env :
4950 RUNNER_TEMP : ${{ runner.temp }}
5051 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
5354
5455 - name : Create Pull Request
5556 uses : peter-evans/create-pull-request@v3
You can’t perform that action at this time.
0 commit comments