Skip to content

Commit 216b117

Browse files
committed
debug: search go dir + resolve qlpacks with bundle codeql binary
1 parent 711dcf9 commit 216b117

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ jobs:
5959
gh codeql version --format=terse
6060
BUNDLE_DIR="$HOME/.local/share/gh/extensions/gh-codeql/dist/release/v${{ steps.version.outputs.version }}"
6161
echo "bundle dir: $BUNDLE_DIR"
62-
ls -la "$BUNDLE_DIR" || true
63-
find "$BUNDLE_DIR" -maxdepth 2 -iname "qlpacks*" 2>/dev/null || true
64-
find "$BUNDLE_DIR" -maxdepth 8 -path "*qlpacks/codeql/go-all*" -iname "qlpack.yml" 2>/dev/null || true
65-
find "$BUNDLE_DIR" -maxdepth 8 -path "*qlpacks/codeql/*-all*" -iname "qlpack.yml" 2>/dev/null | sort || true
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
6667
6768
- name: Upgrade every pack's dependencies
6869
env:

0 commit comments

Comments
 (0)