mirror of
https://gitlab.com/components/sast.git
synced 2025-07-03 08:48:29 +02:00
Replace var to run kubesec-sast job with input
This commit is contained in:
parent
8956444fcb
commit
a2e96cb379
2 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,8 @@ spec:
|
|||
default: ""
|
||||
excluded_analyzers:
|
||||
default: ""
|
||||
run_kubesec_sast:
|
||||
default: 'false'
|
||||
|
||||
---
|
||||
.sast-analyzer:
|
||||
|
@ -75,8 +77,7 @@ kubesec-sast:
|
|||
when: never
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /kubesec/'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH &&
|
||||
$SCAN_KUBERNETES_MANIFESTS == 'true'
|
||||
- if: '$CI_COMMIT_BRANCH && "$[[ inputs.run_kubesec_sast ]]" == "true"'
|
||||
|
||||
.mobsf-sast:
|
||||
extends: .sast-analyzer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue