Skip to content

Commit

Permalink
1.0.44 Automating Trivy Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 8, 2023
1 parent 5db678c commit bb0ffd2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: run-trivy
on:
push:
branches:
- development
- main
pull_request:
jobs:
build:
name: Run Trivy
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in IaC mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'config'
hide-progress: false
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit bb0ffd2

Please sign in to comment.