mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 07:28:29 +02:00
Apply 2 suggestion(s) to 1 file(s)
Co-authored-by: Adam Cohen <acohen@gitlab.com>
This commit is contained in:
parent
b8a8a46636
commit
88139ed569
1 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ semgrep-sast:
|
||||||
rules:
|
rules:
|
||||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /semgrep/'
|
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /semgrep/'
|
||||||
when: never
|
when: never
|
||||||
# When advanced SAST runs with PHP support enabled
|
# When gitlab-advanced-sast runs with PHP support enabled, exclude the `*.php` extension, as well as other files already scanned by gitlab-advanced-sast
|
||||||
- if: '$CI_COMMIT_BRANCH &&
|
- if: '$CI_COMMIT_BRANCH &&
|
||||||
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
||||||
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
||||||
|
@ -210,7 +210,7 @@ semgrep-sast:
|
||||||
variables:
|
variables:
|
||||||
SAST_EXCLUDED_PATHS: "$DEFAULT_SAST_EXCLUDED_PATHS, **/*.py, **/*.go, **/*.java, **/*.js, **/*.jsx, **/*.ts, **/*.tsx, **/*.cjs, **/*.mjs, **/*.cs, **/*.rb, **/*.php"
|
SAST_EXCLUDED_PATHS: "$DEFAULT_SAST_EXCLUDED_PATHS, **/*.py, **/*.go, **/*.java, **/*.js, **/*.jsx, **/*.ts, **/*.tsx, **/*.cjs, **/*.mjs, **/*.cs, **/*.rb, **/*.php"
|
||||||
exists: !reference [.semgrep-with-advanced-sast-exist-rules, exists]
|
exists: !reference [.semgrep-with-advanced-sast-exist-rules, exists]
|
||||||
# When advanced SAST runs but PHP support is disabled
|
# When gitlab-advanced-sast runs but PHP support is disabled, exclude files already scanned by gitlab-advanced-sast
|
||||||
- if: '$CI_COMMIT_BRANCH &&
|
- if: '$CI_COMMIT_BRANCH &&
|
||||||
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
$GITLAB_FEATURES =~ /\bsast_advanced\b/ &&
|
||||||
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
"$[[ inputs.excluded_analyzers ]]" !~ /gitlab-advanced-sast/ &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue