mirror of
https://gitlab.com/components/sast.git
synced 2025-07-01 15:58:28 +02:00
rename advanced_sast input to run_advanced_sast
implements reviewer suggestion from @craigmsmith
This commit is contained in:
parent
fb486fb1a3
commit
0af19cdcc3
2 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ spec:
|
|||
default: '4'
|
||||
run_kubesec_sast:
|
||||
default: 'false'
|
||||
advanced_sast:
|
||||
run_advanced_sast:
|
||||
default: false
|
||||
type: boolean
|
||||
include_experimental:
|
||||
|
@ -58,7 +58,7 @@ gitlab-advanced-sast:
|
|||
rules:
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /semgrep/'
|
||||
when: never
|
||||
- if: '"$[[ inputs.advanced_sast ]]" != "true"'
|
||||
- if: '"$[[ inputs.run_advanced_sast ]]" != "true"'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH &&
|
||||
$GITLAB_FEATURES =~ /\bsast_advanced\b/
|
||||
|
@ -134,7 +134,7 @@ semgrep-sast:
|
|||
- if: '$CI_COMMIT_BRANCH &&
|
||||
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
||||
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
||||
"$[[ inputs.advanced_sast ]]" == "true"'
|
||||
"$[[ inputs.run_advanced_sast ]]" == "true"'
|
||||
variables:
|
||||
SAST_EXCLUDED_PATHS: "$DEFAULT_SAST_EXCLUDED_PATHS, **/*.py, **/*.go, **/*.java, **/*.js, **/*.jsx, **/*.ts, **/*.tsx, **/*.cjs, **/*.mjs, **/*.cs"
|
||||
exists:
|
||||
|
@ -157,7 +157,7 @@ semgrep-sast:
|
|||
- if: '$CI_COMMIT_BRANCH &&
|
||||
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
||||
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
||||
"$[[ inputs.advanced_sast ]]" == "true"'
|
||||
"$[[ inputs.run_advanced_sast ]]" == "true"'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
exists:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue