Skip to content

Commit

Permalink
feat: Add trivy vulnerability scanner in CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed Aug 15, 2024
1 parent 697493b commit b76ca06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/github-actions-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/[email protected]
with:
scan-type: "fs"
scan-ref: "."
trivy-config: trivy.config.yaml
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
3 changes: 3 additions & 0 deletions trivy.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
format: json
exit-code: 1
severity: CRITICAL

0 comments on commit b76ca06

Please sign in to comment.