mirror of
https://gitlab.com/components/sast.git
synced 2025-07-03 08:48:29 +02:00
Replace var image suffix with input
This commit is contained in:
parent
74f9c69edc
commit
38164ad9f1
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,8 @@ spec:
|
|||
default: test
|
||||
image_prefix:
|
||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||
image_suffix:
|
||||
default: ""
|
||||
|
||||
---
|
||||
.sast-analyzer:
|
||||
|
@ -13,7 +15,6 @@ spec:
|
|||
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
|
||||
variables:
|
||||
SEARCH_MAX_DEPTH: 4
|
||||
SAST_IMAGE_SUFFIX: ""
|
||||
SAST_EXCLUDED_ANALYZERS: ""
|
||||
SAST_EXCLUDED_PATHS: "spec, test, tests, tmp"
|
||||
SCAN_KUBERNETES_MANIFESTS: "false"
|
||||
|
@ -182,7 +183,7 @@ semgrep-sast:
|
|||
variables:
|
||||
SEARCH_MAX_DEPTH: 20
|
||||
SAST_ANALYZER_IMAGE_TAG: 3
|
||||
SAST_ANALYZER_IMAGE: "$[[ inputs.image_prefix ]]/semgrep:$SAST_ANALYZER_IMAGE_TAG$SAST_IMAGE_SUFFIX"
|
||||
SAST_ANALYZER_IMAGE: "$[[ inputs.image_prefix ]]/semgrep:$SAST_ANALYZER_IMAGE_TAG$[[ inputs.image_suffix ]]"
|
||||
rules:
|
||||
- if: $SAST_DISABLED
|
||||
when: never
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue