From 19c8d79bf996d89dd0fed904a052bb4e88de04d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20B=C4=85czkowski?= Date: Fri, 29 Sep 2023 15:27:51 +0200 Subject: [PATCH] Add daily vulnerability scan Adds a workflow that will run trivy scanner daily at 16:44. Looks for CVEs with at least MEDIUM severity. --- .github/workflows/trivy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/trivy.yml diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml new file mode 100644 index 0000000..b5bcb3f --- /dev/null +++ b/.github/workflows/trivy.yml @@ -0,0 +1,24 @@ +name: Vulnerability scan + +on: + schedule: + - cron: "44 16 * * *" + push: + pull_request: + +jobs: + build: + name: Trivy fs scan + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run trivy in fs mode + uses: aquasecurity/trivy-action@master + with: + scan-type: 'fs' + scan-ref: '.' + format: 'table' + exit-code: '1' + ignore-unfixed: false + severity: 'CRITICAL,HIGH,MEDIUM'