-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CVE scan pipeline as scheduled nightly
The new 'CVE scan' pipeline scans the latest published image for high & critical vulnerabilities. closes #224
- Loading branch information
1 parent
98ebbdb
commit 0c05809
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |