Skip to content

Commit

Permalink
chore(ci): add security scanning workflow (#338)
Browse files Browse the repository at this point in the history
Add trivy security scanning workflow to ristretto.
  • Loading branch information
joshua-goldstein authored Apr 19, 2023
1 parent 3177d9c commit 34fd2d3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-aqua-security-trivy-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci-aqua-security-trivy-tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
schedule:
- cron: "0 * * * *"
jobs:
build:
name: trivy-tests
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- 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 34fd2d3

Please sign in to comment.