mirror of
https://gitlab.com/components/sast.git
synced 2025-07-04 01:08:28 +02:00
Compare commits
11 commits
5b9c48031d
...
4b2733b8f2
Author | SHA1 | Date | |
---|---|---|---|
|
4b2733b8f2 | ||
|
40ec68512d | ||
|
cf87e0da38 | ||
|
2a492122e2 | ||
|
5758da0696 | ||
|
7f7984b96d | ||
|
70e2583135 | ||
|
8c5526b0f4 | ||
|
4ea446f709 | ||
|
c6ea9d4f34 | ||
|
446d4146f5 |
2 changed files with 18 additions and 17 deletions
|
@ -9,34 +9,29 @@ spec:
|
||||||
default: "spec, test, tests, tmp"
|
default: "spec, test, tests, tmp"
|
||||||
excluded_analyzers:
|
excluded_analyzers:
|
||||||
default: ""
|
default: ""
|
||||||
analyzer_image:
|
image_prefix:
|
||||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||||
|
image_suffix:
|
||||||
|
dafault: ""
|
||||||
search_max_depth:
|
search_max_depth:
|
||||||
default: 4
|
default: 4
|
||||||
image_tag:
|
image_tag:
|
||||||
default: 6
|
default: 6
|
||||||
|
|
||||||
---
|
---
|
||||||
iac-sast:
|
kics-iac-sast:
|
||||||
stage: $[[ inputs.stage ]]
|
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:
|
artifacts:
|
||||||
access: 'developer'
|
access: 'developer'
|
||||||
reports:
|
reports:
|
||||||
sast: gl-sast-report.json
|
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
|
allow_failure: true
|
||||||
script:
|
|
||||||
- /analyzer run
|
|
||||||
|
|
||||||
kics-iac-sast:
|
|
||||||
extends: iac-sast
|
|
||||||
image:
|
|
||||||
name: "$[[ inputs.analyzer_image ]]/kics:$[[ inputs.image_tag ]]"
|
|
||||||
rules:
|
rules:
|
||||||
- if: $SAST_DISABLED == 'true' || $SAST_DISABLED == '1'
|
- if: $SAST_DISABLED == 'true' || $SAST_DISABLED == '1'
|
||||||
when: never
|
when: never
|
||||||
|
|
|
@ -5,7 +5,7 @@ spec:
|
||||||
image_prefix:
|
image_prefix:
|
||||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||||
image_tag:
|
image_tag:
|
||||||
default: '5'
|
default: '6'
|
||||||
image_suffix:
|
image_suffix:
|
||||||
default: ""
|
default: ""
|
||||||
excluded_analyzers:
|
excluded_analyzers:
|
||||||
|
@ -53,8 +53,14 @@ gitlab-advanced-sast:
|
||||||
image:
|
image:
|
||||||
name: "$[[ inputs.image_prefix ]]/gitlab-advanced-sast:${SAST_ANALYZER_IMAGE_TAG}$[[ inputs.image_suffix ]]"
|
name: "$[[ inputs.image_prefix ]]/gitlab-advanced-sast:${SAST_ANALYZER_IMAGE_TAG}$[[ inputs.image_suffix ]]"
|
||||||
variables:
|
variables:
|
||||||
SAST_ANALYZER_IMAGE_TAG: 1
|
SAST_ANALYZER_IMAGE_TAG: 2
|
||||||
SEARCH_MAX_DEPTH: 20
|
SEARCH_MAX_DEPTH: 20
|
||||||
|
cache:
|
||||||
|
key: "scan-metrics-$CI_COMMIT_REF_SLUG"
|
||||||
|
fallback_keys:
|
||||||
|
- "scan-metrics-$CI_DEFAULT_BRANCH"
|
||||||
|
paths:
|
||||||
|
- "scan_metrics.csv"
|
||||||
rules:
|
rules:
|
||||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /gitlab-advanced-sast/'
|
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /gitlab-advanced-sast/'
|
||||||
when: never
|
when: never
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue