@@ -49,21 +49,21 @@ jobs:
4949 - name : Setup CodeQL
5050 uses : ./.github/actions/install-codeql
5151
52- - name : DEBUG gh- codeql bundle qlpacks
52+ - name : DEBUG codeql-action bundle qlpacks
5353 env :
5454 GH_TOKEN : ${{ github.token }}
5555 run : |
5656 set -x
57- gh extension install github/gh-codeql
58- gh codeql set-version "${{ steps.version.outputs.version }}"
59- gh codeql version --format=terse
60- BUNDLE_DIR="$HOME/.local/share/gh/extensions/gh-codeql/dist/release/v${{ steps.version.outputs.version }} "
61- echo " bundle dir: $BUNDLE_DIR"
62- find "$BUNDLE_DIR" -maxdepth 3 -type d -iname "go*" 2>/dev/null || true
63- echo "--- all qlpack.yml under go dir ---"
64- find "$BUNDLE_DIR/go" -iname " qlpack.yml" 2>/dev/null | sort || true
65- echo "--- resolve qlpacks using bundle codeql binary ---"
66- "$BUNDLE_DIR/codeql" resolve qlpacks --format=json --search-path "$BUNDLE_DIR" 2>&1 | head -c 4000 || true
57+ BUNDLE_TAG="codeql-bundle-v${{ steps.version.outputs.version }}"
58+ mkdir -p /tmp/bundle
59+ gh release download "$BUNDLE_TAG" --repo github/ codeql-action --pattern "codeql-bundle-linux64.tar.gz" --dir /tmp/bundle
60+ echo "--- listing top-level tar entries (first 40) --- "
61+ tar tzf /tmp/ bundle/codeql-bundle-linux64.tar.gz | head -40
62+ echo "--- extracting only qlpacks/codeql/go-all and qlpacks/codeql/java-all ---"
63+ tar xzf /tmp/bundle/codeql-bundle-linux64.tar.gz -C /tmp/bundle --wildcards \
64+ 'codeql/qlpacks/codeql/go-all/*/ qlpack.yml' \
65+ 'codeql/ qlpacks/codeql/java-all/*/qlpack.yml' 2>&1 | head -20 || true
66+ find /tmp/bundle -iname "qlpack.yml" | sort
6767
6868 - name : Upgrade every pack's dependencies
6969 env :
0 commit comments