mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 07:28:29 +02:00
Enable experimental features via input instead of variable
This commit is contained in:
parent
e94915c35f
commit
4150356e21
2 changed files with 6 additions and 5 deletions
|
@ -39,6 +39,7 @@ include:
|
|||
| `excluded_paths` | `"spec, test, tests, tmp"` | Comma separated list of paths to exclude |
|
||||
| `search_max_depth` | `4` | Defines how many directory levels the search for programming languages should span |
|
||||
| `run_kubesec_sast` | `"false"` | Set it to `"true"` to run `kubesec-sast` job |
|
||||
| `include_experimental` | `"false"` | Set it to `"true"` to enable [experimental analyzers](https://docs.gitlab.com/ee/user/application_security/sast/#experimental-features) |
|
||||
|
||||
### Variables
|
||||
|
||||
|
|
10
template.yml
10
template.yml
|
@ -16,6 +16,8 @@ spec:
|
|||
default: 4
|
||||
run_kubesec_sast:
|
||||
default: 'false'
|
||||
include_experimental:
|
||||
default: 'false'
|
||||
---
|
||||
.sast-analyzer:
|
||||
stage: $[[ inputs.stage ]]
|
||||
|
@ -79,8 +81,7 @@ mobsf-android-sast:
|
|||
rules:
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /mobsf/'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH &&
|
||||
$SAST_EXPERIMENTAL_FEATURES == 'true'
|
||||
- if: '$CI_COMMIT_BRANCH && "$[[ inputs.include_experimental ]]" == "true"'
|
||||
exists:
|
||||
- '**/*.apk'
|
||||
- '**/AndroidManifest.xml'
|
||||
|
@ -90,8 +91,7 @@ mobsf-ios-sast:
|
|||
rules:
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /mobsf/'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH &&
|
||||
$SAST_EXPERIMENTAL_FEATURES == 'true'
|
||||
- if: '$CI_COMMIT_BRANCH && "$[[ inputs.include_experimental ]]" == "true"'
|
||||
exists:
|
||||
- '**/*.ipa'
|
||||
- '**/*.xcodeproj/*'
|
||||
|
@ -183,7 +183,7 @@ spotbugs-sast:
|
|||
rules:
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /spotbugs/'
|
||||
when: never
|
||||
- if: $SAST_EXPERIMENTAL_FEATURES == 'true'
|
||||
- if: '"$[[ inputs.include_experimental ]]" == "true"'
|
||||
exists:
|
||||
- '**/AndroidManifest.xml'
|
||||
when: never
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue