Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
43a9584b
Commit
43a9584b
authored
Nov 07, 2019
by
Adam Cohen
Committed by
Kamil Trzciński
Nov 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow container scanning to run offline
parent
f4255379
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
changelogs/unreleased/allow-container-scanning-to-run-offline.yml
...gs/unreleased/allow-container-scanning-to-run-offline.yml
+5
-0
lib/gitlab/ci/templates/Security/Container-Scanning.gitlab-ci.yml
...ab/ci/templates/Security/Container-Scanning.gitlab-ci.yml
+7
-6
No files found.
changelogs/unreleased/allow-container-scanning-to-run-offline.yml
0 → 100644
View file @
43a9584b
---
title
:
Allow container scanning to run offline by specifying the Clair DB image to use.
merge_request
:
19161
author
:
type
:
changed
lib/gitlab/ci/templates/Security/Container-Scanning.gitlab-ci.yml
View file @
43a9584b
...
@@ -9,16 +9,17 @@ container_scanning:
...
@@ -9,16 +9,17 @@ container_scanning:
name
:
registry.gitlab.com/gitlab-org/security-products/analyzers/klar:$CS_MAJOR_VERSION
name
:
registry.gitlab.com/gitlab-org/security-products/analyzers/klar:$CS_MAJOR_VERSION
entrypoint
:
[]
entrypoint
:
[]
variables
:
variables
:
# By default, use the latest clair vulnerabilities database, however, allow it to be overridden here
# By default, use the latest clair vulnerabilities database, however, allow it to be overridden here with a specific image
# with a specific version to provide consistency for integration testing purposes
# to enable container scanning to run offline, or to provide a consistent list of vulnerabilities for integration testing purposes
CLAIR_DB_IMAGE_TAG
:
latest
CLAIR_DB_IMAGE_TAG
:
"
latest"
# Override this variable in your `.gitlab-ci.yml` file and set it to `fetch` if you want to provide a `clair-whitelist.yaml` file.
CLAIR_DB_IMAGE
:
"
arminc/clair-db:$CLAIR_DB_IMAGE_TAG"
# See https://docs.gitlab.com/ee/user/application_security/container_scanning/index.html#overriding-the-container-scanning-template
# Override the GIT_STRATEGY variable in your `.gitlab-ci.yml` file and set it to `fetch` if you want to provide a `clair-whitelist.yml`
# file. See https://docs.gitlab.com/ee/user/application_security/container_scanning/index.html#overriding-the-container-scanning-template
# for details
# for details
GIT_STRATEGY
:
none
GIT_STRATEGY
:
none
allow_failure
:
true
allow_failure
:
true
services
:
services
:
-
name
:
arminc/clair-db:$CLAIR_DB_IMAGE_TAG
-
name
:
$CLAIR_DB_IMAGE
alias
:
clair-vulnerabilities-db
alias
:
clair-vulnerabilities-db
script
:
script
:
# the kubernetes executor currently ignores the Docker image entrypoint value, so the start.sh script must
# the kubernetes executor currently ignores the Docker image entrypoint value, so the start.sh script must
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment