Replace var image suffix with input

This commit is contained in:
Fabio Pitino 2023-05-03 10:34:32 +01:00
parent 74f9c69edc
commit 38164ad9f1
2 changed files with 4 additions and 2 deletions

View file

@ -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