Skip to content
Snippets Groups Projects
Unverified Commit 57e486b5 authored by Timo Furrer's avatar Timo Furrer
Browse files

Upgrade to latest container scanning component

parent 0bf3b35a
No related branches found
No related tags found
No related merge requests found
...@@ -27,21 +27,11 @@ include: ...@@ -27,21 +27,11 @@ include:
- tests/terraform/**.tf - tests/terraform/**.tf
- backports/*.gitlab-ci.yml - backports/*.gitlab-ci.yml
- backports/OpenTofu/*.gitlab-ciyml - backports/OpenTofu/*.gitlab-ciyml
- component: gitlab.com/components/container-scanning/container-scanning@1.0 - component: gitlab.com/components/container-scanning/container-scanning@2.0
inputs: inputs:
stage: quality stage: quality
# FIXME: why is this not the default? cs_image: $GITLAB_OPENTOFU_IMAGE_NAME
analyzer_image: "$CI_TEMPLATE_REGISTRY_HOST/security-products/container-scanning:6" git_strategy: fetch
# FIXME: why do I have to set this, this is weird ...
force_run: true
# FIXME: doesn't work
# rules:
# - changes:
# - Dockerfile
# - .gitlab-ci.yml
# - src/gitlab-tofu.sh
# - if: $CI_COMMIT_TAG
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stages: stages:
- build - build
...@@ -123,20 +113,13 @@ check-backports: ...@@ -123,20 +113,13 @@ check-backports:
container_scanning: container_scanning:
extends: .opentofu-versions extends: .opentofu-versions
needs: ['gitlab-opentofu-image:build'] rules:
variables: - changes:
CS_IMAGE: $GITLAB_OPENTOFU_IMAGE_NAME - src/gitlab-tofu.sh
CS_SCHEMA_MODEL: 15 - Dockerfile
# Used for remediation - .gitlab-ci.yml
GIT_STRATEGY: fetch - if: $CI_COMMIT_TAG
# FIXME: because we are using rules with the include, but override here, we also have to have the same rules here - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# rules:
# - changes:
# - Dockerfile
# - .gitlab-ci.yml
# - src/gitlab-tofu.sh
# - if: $CI_COMMIT_TAG
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
gitlab-opentofu-image:deploy:with-opentofu-version: gitlab-opentofu-image:deploy:with-opentofu-version:
extends: .opentofu-versions extends: .opentofu-versions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment