Skip to content

Commit

Permalink
ci: enable Trivy vulnerability scanning (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored Dec 29, 2024
1 parent e2ec175 commit b7625e5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ jobs:
fossa-api-key: ${{ secrets.FOSSA_API_KEY }}
github-token: ${{ github.token }}

trivy:
name: Trivy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
with:
scan-type: fs
scanners: vuln
ignore-unfixed: true
format: sarif
output: trivy-results.sarif
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7
with:
sarif_file: trivy-results.sarif

codeql:
name: CodeQL
runs-on: ubuntu-latest
Expand Down

0 comments on commit b7625e5

Please sign in to comment.