Skip to content

Commit

Permalink
[semver:minor] CodeQL: add param for additional analyze parameters (#86)
Browse files Browse the repository at this point in the history
* CodeQL: add param for additional analyze parameters

* typo

* typo
  • Loading branch information
cesarfm authored Jun 14, 2023
1 parent f4839ba commit 989fc35
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/jobs/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ parameters:
description: 'Use to specify the build command or script that invokes the build process for the codebase. If absent, tries to automatically build. Not needed for Python and JavaScript/TypeScript analysis'
type: string
default: ''
analyze_params:
description: 'Additional parameters for the codeql database analyze command. For more info see https://docs.github.com/en/code-security/codeql-cli/codeql-cli-manual/database-analyze'
type: string
default: ''

executor: << parameters.executor >>

Expand Down Expand Up @@ -71,6 +75,10 @@ steps:
cmd+=( --format sarif-latest )
cmd+=( --output=<< parameters.language >>-codeql-report.sarif )
if [[ ! -z "<< parameters.analyze_params >>" ]]; then
cmd+=( << parameters.analyze_params >> )
fi
echo "${cmd[@]}"
"${cmd[@]}"
Expand Down

0 comments on commit 989fc35

Please sign in to comment.