Skip to content

Commit

Permalink
Add daily vulnerability scan
Browse files Browse the repository at this point in the history
Adds a workflow that will run trivy scanner daily at 16:44.
Looks for CVEs with at least MEDIUM severity.
  • Loading branch information
Bouncheck authored and avelanarius committed Dec 7, 2023
1 parent ffff237 commit a36ec88
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit a36ec88

Please sign in to comment.