mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 15:38: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
|
@ -23,3 +23,4 @@ where `<VERSION>` is the latest released tag or `main`.
|
||||||
| ----- | ------------- | ----------- |
|
| ----- | ------------- | ----------- |
|
||||||
| `stage` | `test` | The stage where you want the job to be added |
|
| `stage` | `test` | The stage where you want the job to be added |
|
||||||
| `image_prefix` | `$CI_TEMPLATE_REGISTRY_HOST/security-products` | Define where all Docker image are pulled from |
|
| `image_prefix` | `$CI_TEMPLATE_REGISTRY_HOST/security-products` | Define where all Docker image are pulled from |
|
||||||
|
| `image_suffix` | `""` | Used by `semgrep-sast` job only |
|
||||||
|
|
|
@ -4,6 +4,8 @@ spec:
|
||||||
default: test
|
default: test
|
||||||
image_prefix:
|
image_prefix:
|
||||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||||
|
image_suffix:
|
||||||
|
default: ""
|
||||||
|
|
||||||
---
|
---
|
||||||
.sast-analyzer:
|
.sast-analyzer:
|
||||||
|
@ -13,7 +15,6 @@ spec:
|
||||||
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
|
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
|
||||||
variables:
|
variables:
|
||||||
SEARCH_MAX_DEPTH: 4
|
SEARCH_MAX_DEPTH: 4
|
||||||
SAST_IMAGE_SUFFIX: ""
|
|
||||||
SAST_EXCLUDED_ANALYZERS: ""
|
SAST_EXCLUDED_ANALYZERS: ""
|
||||||
SAST_EXCLUDED_PATHS: "spec, test, tests, tmp"
|
SAST_EXCLUDED_PATHS: "spec, test, tests, tmp"
|
||||||
SCAN_KUBERNETES_MANIFESTS: "false"
|
SCAN_KUBERNETES_MANIFESTS: "false"
|
||||||
|
@ -182,7 +183,7 @@ semgrep-sast:
|
||||||
variables:
|
variables:
|
||||||
SEARCH_MAX_DEPTH: 20
|
SEARCH_MAX_DEPTH: 20
|
||||||
SAST_ANALYZER_IMAGE_TAG: 3
|
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:
|
rules:
|
||||||
- if: $SAST_DISABLED
|
- if: $SAST_DISABLED
|
||||||
when: never
|
when: never
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue