File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,20 @@ jobs:
62
62
CODEQL_REPOSITORY_PATH="${CODEQL_REPOSITORY_PATH:-$HOME/.codeql/codeql-ql}"
63
63
CODEQL_SUITE="${CODEQL_SUITE:-$CODEQL_REPOSITORY_PATH/ql/ql/src/codeql-suites/ql-code-scanning.qls}"
64
64
65
- if which codeql >/dev/null; then
65
+ # Glob for Actions toolcache
66
+ CODEQL_GLOB='$RUNNER_TOOL_CACHE/CodeQL/*/x64/codeql/codeql'
67
+
68
+ if [ -f "$CODEQL_GLOB" ]; then
69
+ CODEQL_BINARY=$(echo $CODEQL_GLOB)
70
+ elif which codeql >/dev/null; then
66
71
CODEQL_BINARY="codeql"
67
72
elif gh codeql >/dev/null; then
68
73
CODEQL_BINARY="gh codeql"
69
74
else
70
75
gh extension install github/gh-codeql
71
76
CODEQL_BINARY="gh codeql"
72
77
fi
78
+ echo "[+] Using codeql binary: $CODEQL_BINARY"
73
79
74
80
$CODEQL_BINARY database create \
75
81
--language ql --overwrite \
You can’t perform that action at this time.
0 commit comments