From d1b15e475f66985211a161391113228aaea962a9 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Tue, 15 Mar 2022 08:40:42 -0400 Subject: [PATCH] scan images --- .github/workflows/scan.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/scan.yml diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml new file mode 100644 index 0000000..32e4b29 --- /dev/null +++ b/.github/workflows/scan.yml @@ -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'