Skip to content

Commit

Permalink
build: add trivy (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoanalista authored Sep 2, 2022
1 parent 8a3ef9f commit 1b8c36e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Trivy security Gate
on: [push]
jobs:
security-gate:
name: Trivy security Gate
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
format: 'table'
exit-code: '1'
severity: 'CRITICAL'
ignore-unfixed: true

0 comments on commit 1b8c36e

Please sign in to comment.