Merge pull request #8 from rocky-linux/feature/scan

scan images
This commit is contained in:
Neil Hanlon 2022-03-15 08:42:11 -04:00 committed by GitHub
commit 468f492e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
.github/workflows/scan.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: scan
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * *"
jobs:
scan:
name: Scan
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/library/rockylinux:8'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'