Add an initial version of the component

This commit is contained in:
Ahmed Hemdan 2023-06-13 13:37:30 +02:00
parent 5d254b062d
commit 66e7f4df74
No known key found for this signature in database
GPG key ID: 35C579218532E2FF
18 changed files with 307 additions and 78 deletions

33
template.yml Normal file
View file

@ -0,0 +1,33 @@
spec:
inputs:
stage:
default: test
image_prefix:
default: "$CI_TEMPLATE_REGISTRY_HOST/security-products"
image_tag:
default: '5'
image_suffix:
default: ""
---
variables:
SECRET_DETECTION_EXCLUDED_PATHS: ""
.secret-analyzer:
stage: $[[ inputs.stage ]]
image: "$[[ inputs.image_prefix ]]/secrets:$[[ inputs.image_tag ]]$[[ inputs.image_suffix ]]"
services: []
allow_failure: true
variables:
GIT_DEPTH: "50"
# `rules` must be overridden explicitly by each child job
# see https://gitlab.com/gitlab-org/gitlab/-/issues/218444
artifacts:
reports:
secret_detection: gl-secret-detection-report.json
secret_detection:
extends: .secret-analyzer
rules:
- if: $CI_COMMIT_BRANCH
script:
- /analyzer run