Skip to content

Commit

Permalink
trivy scan gha workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tjs-intel committed May 10, 2024
1 parent d837220 commit 19513e6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: security checks
permissions: read-all
run-name: Security checks for ${{ github.repository }}@${{ github.ref }}
on:
push: {}
schedule:
- cron: "0 8,16 * * *"
jobs:
trivy-scan-fs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run Trivy
uses: aquasecurity/trivy-action@master
with:
scan-type: fs
scan-ref: .
trivy-config: trivy.yaml
35 changes: 35 additions & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
db:
download-only: false
light: false
no-progress: true
repository: ghcr.io/aquasecurity/trivy-db
skip-update: false
debug: false
exit-code: 1
format: table
image:
removed-pkgs: false
insecure: false
license:
forbidden: []
full: false
ignored: []
notice: []
permissive: []
reciprocal: []
restricted: []
unencumbered: []
list-all-pkgs: false
quiet: false
scan:
file-patterns: []
scanners:
- vuln
- secret
skip-dirs: []
skip-files: []
severity: LOW,MEDIUM,HIGH,CRITICAL
timeout: 10m0s
vulnerability:
ignore-unfixed: false
type: os,library

0 comments on commit 19513e6

Please sign in to comment.