2828 with :
2929 python-version : " 3.9"
3030
31+ - name : Install CodeQL
32+ run : |
33+ VERSION="v$( jq -r '.supported_environment | .[0] | .codeql_cli' supported_codeql_configs.json)"
34+ gh extensions install github/gh-codeql
35+ gh codeql set-version "$VERSION"
36+ gh codeql install-stub
37+ env :
38+ GITHUB_TOKEN : ${{ github.token }}
39+
3140 - name : Install generate_package_files.py dependencies
3241 run : pip install -r scripts/requirements.txt
3342
@@ -49,14 +58,14 @@ jobs:
4958
5059 - name : Validate Package Files (CPP)
5160 run : |
52- find rule_packages/cpp -name \*.json -exec basename {} .json \; | xargs --max-procs "$XARGS_MAX_PROCS" --max-args 1 python scripts/generate_rules/generate_package_files.py cpp
61+ find rule_packages/cpp -name \*.json -exec basename {} .json \; | xargs python scripts/generate_rules/generate_package_files.py cpp
5362 git diff
5463 git diff --compact-summary
5564 git diff --quiet
5665
5766 - name : Validate Package Files (C)
5867 run : |
59- find rule_packages/c -name \*.json -exec basename {} .json \; | xargs --max-procs "$XARGS_MAX_PROCS" --max-args 1 python scripts/generate_rules/generate_package_files.py c
68+ find rule_packages/c -name \*.json -exec basename {} .json \; | xargs python scripts/generate_rules/generate_package_files.py c
6069 git diff
6170 git diff --compact-summary
6271 git diff --quiet
@@ -68,25 +77,26 @@ jobs:
6877 - name : Checkout
6978 uses : actions/checkout@v2
7079
71- - name : Fetch CodeQL
80+ - name : Install CodeQL
7281 run : |
73- TAG="v$( jq -r '.supported_environment | .[0] | .codeql_cli' supported_codeql_configs.json)"
74- gh release download $TAG --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
75- unzip -q codeql-linux64.zip
82+ VERSION="v$( jq -r '.supported_environment | .[0] | .codeql_cli' supported_codeql_configs.json)"
83+ gh extensions install github/gh-codeql
84+ gh codeql set-version "$VERSION"
85+ gh codeql install-stub
7686 env :
7787 GITHUB_TOKEN : ${{ github.token }}
7888
7989 - name : Validate CodeQL Format (CPP)
8090 run : |
81- find cpp -name \*.ql -or -name \*.qll -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql/codeql query format --in-place
91+ find cpp -name \*.ql -or -name \*.qll -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql query format --in-place
8292
8393 git diff
8494 git diff --compact-summary
8595 git diff --quiet
8696
8797 - name : Validate CodeQL Format (C)
8898 run : |
89- find c -name \*.ql -or -name \*.qll -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql/codeql query format --in-place
99+ find c -name \*.ql -or -name \*.qll -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql query format --in-place
90100
91101 git diff
92102 git diff --compact-summary
0 commit comments