mirror of
https://gitlab.com/components/sast.git
synced 2025-06-29 15:08:29 +02:00
Fix
This commit is contained in:
parent
164e1f07ad
commit
8ce5c87369
2 changed files with 1 additions and 39 deletions
|
@ -1,38 +0,0 @@
|
|||
# Component created based on GitLab's IAC SAST Scanning template
|
||||
# Read more about this feature here: https://docs.gitlab.com/ee/user/application_security/iac_scanning/
|
||||
|
||||
spec:
|
||||
inputs:
|
||||
stage:
|
||||
default: test
|
||||
excluded_paths:
|
||||
default: "spec, test, tests, tmp"
|
||||
excluded_analyzers:
|
||||
default: ""
|
||||
image_prefix:
|
||||
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
|
||||
image_suffix:
|
||||
default: ""
|
||||
search_max_depth:
|
||||
default: 4
|
||||
image_tag:
|
||||
default: 6
|
||||
|
||||
---
|
||||
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
|
||||
allow_failure: true
|
||||
rules:
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /kics/'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH
|
|
@ -33,6 +33,6 @@ kics-iac-sast:
|
|||
sast: gl-sast-report.json
|
||||
allow_failure: true
|
||||
rules:
|
||||
- if: $[[ inputs.excluded_analyzers ]] =~ /kics/
|
||||
- if: '"$[[ inputs.excluded_analyzers ]]" =~ /kics/'
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue