Skip to content

Commit

Permalink
Merge pull request #237 from abelsromero/issue-224-add-image-cve-scan
Browse files Browse the repository at this point in the history
Add CVE scan pipeline as scheduled nightly
  • Loading branch information
dduportal authored Feb 7, 2022
2 parents 1a5ecc0 + 0c05809 commit 96ca6a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/containerscan/allowedlist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
general:
vulnerabilities: [] # List of excluded CVEs (e.g: CVE-2021-3711)
22 changes: 22 additions & 0 deletions .github/workflows/cve-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "CVE Scan"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: { }
jobs:
scan-images:
name: Scan latest public image
runs-on: ubuntu-latest
strategy:
matrix:
image: [ docker-asciidoctor ]
tag: [ latest ]
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/asciidoctor/${{ matrix.image }}:${{ matrix.tag }}'
severity: 'CRITICAL,HIGH'
format: 'table'
# we can set to 0 to avoid breaking the pipeline
exit-code: '1'

0 comments on commit 96ca6a7

Please sign in to comment.