This repository has been archived on 2026-05-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Shell 61.8%
  • Dockerfile 38.2%
Find a file
2018-09-21 18:08:28 +00:00
.gitlab-ci.yml Included Clair into Gitlab CI Pipeline 2018-09-21 17:22:12 +00:00
config.yaml Included Clair into Gitlab CI Pipeline 2018-09-21 17:22:12 +00:00
Dockerfile Included Clair into Gitlab CI Pipeline 2018-09-21 17:22:12 +00:00
entrypoint.sh Included Clair into Gitlab CI Pipeline 2018-09-21 17:22:12 +00:00
examples-whitelist.yml added examples-whitelist.yml 2018-09-21 18:05:48 +00:00
README.md documented examples-whitelist.yml 2018-09-21 18:08:28 +00:00
scan.sh Included Clair into Gitlab CI Pipeline 2018-09-21 17:22:12 +00:00

arminc-clair-scanner

Run clair in your Gitlab CI Pipeline

clair:
  stage: test
  image: thomass/clair
  services:
    - name: arminc/clair-db:latest
      alias: postgres
  variables:
    CLAIR_THRESHOLD: 'Medium'
    CLAIR_WHITELIST_PATH: 'clair-whitelist.yml'
  script: scan "my/imagename:1.2.3"
  • Both environment variables are optional
  • CLAIR_THRESHOLD: default is 'Unknown'; could be 'Defcon1', 'Critical', 'High', 'Medium', 'Low', 'Negligible', 'Unknown'
  • CLAIR_WHITELIST is the path to the whitelist file in your repository, if existing. See examples-whitelist.yml

Credits

This scanner is created of https://github.com/arminc/clair-scanner and self containing the clair server. You just need to 'add' the arminc/clair-db from https://github.com/arminc/clair-local-scan