8000 feat: add help by default in SARIF · advanced-security/gh-codeql-scan@397c67d · GitHub
[go: up one dir, main page]

Skip to content

Commit 397c67d

Browse files
committed
feat: add help by default in SARIF
1 parent 7052368 commit 397c67d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/codeql-analyze

+7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ source $EXTENSION_LOCATION/bin/codeql-utils
44

55
CODEQL_DATABASE_PATHS=$(cat $CODEQL_DATABASE_PATHS_FILE)
66

7+
CODEQL_ADD_HELP="--sarif-add-query-help"
8+
79
for i in "$@"; do
810
case $i in
11+
--ignore-sarif-query-help)
12+
CODEQL_ADD_HELP=""
13+
shift
14+
;;
915
--disable-uploading)
1016
GITHUB_UPLOAD=0
1117
shift
@@ -44,6 +50,7 @@ for CODEQL_DATABASE in $CODEQL_DATABASE_PATHS ; do
4450
# TODO: custom QL suites
4551
# The --sarif-category must be set in case of multiple databases
4652
$CODEQL_BINARY database analyze \
53+
$CODEQL_ADD_HELP \
4754
--format="sarif-latest" \
4855
--sarif-category="${DATABASE}" \
4956
--output=$CODEQL_SARIF \

0 commit comments

Comments
 (0)
0