Skip to content

Commit

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

* typo

* typo

* codeql: parameter for memory instead
  • Loading branch information
cesarfm authored Jun 14, 2023
1 parent 989fc35 commit 087f651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jobs/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ 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'
memory_usage:
description: 'Set total amount of RAM (in MB) the query evaluator should be allowed to use.'
type: string
default: ''

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

0 comments on commit 087f651

Please sign in to comment.