Skip to content

Commit ad7dac7

Browse files
committed
debug: test gh-codeql bundle install + qlpacks disk layout
1 parent 3fa6f79 commit ad7dac7

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎.github/workflows/update-codeql-version.yml‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,18 @@ jobs:
4949
- name: Setup CodeQL
5050
uses: ./.github/actions/install-codeql
5151

52-
- name: DEBUG resolve qlpacks
52+
- name: DEBUG gh-codeql bundle qlpacks
53+
env:
54+
GH_TOKEN: ${{ github.token }}
5355
run: |
5456
set -x
55-
codeql version
56-
echo "--- codeql resolve qlpacks --format=json ---"
57-
codeql resolve qlpacks --format=json || true
58-
echo "--- find bundled qlpacks dir ---"
59-
find "$(dirname "$(command -v codeql)")" -maxdepth 6 -iname "qlpack.yml" -path "*qlpacks*codeql*" 2>/dev/null | head -50 || true
57+
gh extension install github/gh-codeql
58+
gh codeql set-version "${{ steps.version.outputs.version }}"
59+
gh codeql version --format=terse
60+
BUNDLE_CODEQL="$(gh codeql home 2>/dev/null || true)"
61+
echo "gh codeql home: $BUNDLE_CODEQL"
62+
find "$BUNDLE_CODEQL" -maxdepth 4 -iname "qlpacks" -type d 2>/dev/null || true
63+
find "$BUNDLE_CODEQL" -maxdepth 6 -path "*qlpacks/codeql*" -iname "qlpack.yml" 2>/dev/null | sort | head -80 || true
6064
6165
- name: Upgrade every pack's dependencies
6266
env:

0 commit comments

Comments
 (0)