Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
57e486b5
Unverified
Commit
57e486b5
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade to latest container scanning component
parent
0bf3b35a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-27
10 additions, 27 deletions
.gitlab-ci.yml
with
10 additions
and
27 deletions
.gitlab-ci.yml
+
10
−
27
View file @
57e486b5
...
...
@@ -27,21 +27,11 @@ include:
-
tests/terraform/**.tf
-
backports/*.gitlab-ci.yml
-
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
:
stage
:
quality
# FIXME: why is this not the default?
analyzer_image
:
"
$CI_TEMPLATE_REGISTRY_HOST/security-products/container-scanning:6"
# 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
cs_image
:
$GITLAB_OPENTOFU_IMAGE_NAME
git_strategy
:
fetch
stages
:
-
build
...
...
@@ -123,20 +113,13 @@ check-backports:
container_scanning
:
extends
:
.opentofu-versions
needs
:
[
'
gitlab-opentofu-image:build'
]
variables
:
CS_IMAGE
:
$GITLAB_OPENTOFU_IMAGE_NAME
CS_SCHEMA_MODEL
:
15
# Used for remediation
GIT_STRATEGY
:
fetch
# FIXME: because we are using rules with the include, but override here, we also have to have the same rules here
# rules:
# - changes:
# - Dockerfile
# - .gitlab-ci.yml
# - src/gitlab-tofu.sh
# - if: $CI_COMMIT_TAG
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
rules
:
-
changes
:
-
src/gitlab-tofu.sh
-
Dockerfile
-
.gitlab-ci.yml
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
gitlab-opentofu-image:deploy:with-opentofu-version
:
extends
:
.opentofu-versions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment