mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 07:28:29 +02:00
Compare commits
3 commits
7626afb520
...
40ec68512d
Author | SHA1 | Date | |
---|---|---|---|
|
40ec68512d | ||
|
cf87e0da38 | ||
|
2a492122e2 |
1 changed files with 10 additions and 15 deletions
|
@ -9,34 +9,29 @@ spec:
|
|||
default: "spec, test, tests, tmp"
|
||||
excluded_analyzers:
|
||||
default: ""
|
||||
analyzer_image:
|
||||
image_prefix:
|
||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||
image_suffix:
|
||||
dafault: ""
|
||||
search_max_depth:
|
||||
default: 4
|
||||
image_tag:
|
||||
default: 6
|
||||
|
||||
---
|
||||
iac-sast:
|
||||
kics-iac-sast:
|
||||
stage: $[[ inputs.stage ]]
|
||||
image:
|
||||
name: "$[[ inputs.image_prefix ]]/kics:$[[ inputs.image_tag ]]$[[ inputs.image_suffix ]]"
|
||||
variables:
|
||||
SEARCH_MAX_DEPTH: $[[ inputs.search_max_depth ]]
|
||||
script:
|
||||
- /analyzer run
|
||||
artifacts:
|
||||
access: 'developer'
|
||||
reports:
|
||||
sast: gl-sast-report.json
|
||||
rules:
|
||||
- when: never
|
||||
# `rules` must be overridden explicitly by each child job
|
||||
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
|
||||
variables:
|
||||
SEARCH_MAX_DEPTH: $[[ inputs.search_max_depth ]]
|
||||
allow_failure: true
|
||||
script:
|
||||
- /analyzer run
|
||||
|
||||
kics-iac-sast:
|
||||
extends: iac-sast
|
||||
image:
|
||||
name: "$[[ inputs.analyzer_image ]]/kics:$[[ inputs.image_tag ]]"
|
||||
rules:
|
||||
- if: $SAST_DISABLED == 'true' || $SAST_DISABLED == '1'
|
||||
when: never
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue