Commit 43a9584b authored by Adam Cohen's avatar Adam Cohen Committed by Kamil Trzciński

Allow container scanning to run offline

parent f4255379
---
title: Allow container scanning to run offline by specifying the Clair DB image to use.
merge_request: 19161
author:
type: changed
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment