Skip to content

Commit

Permalink
chore(sage-monorepo): update Trivy repo scanning workflow (ARCH-320) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Nov 4, 2024
1 parent d341394 commit 8bed666
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/scan-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@ on:
branches:
- main
pull_request:
schedule:
# Every Thursday at 7:29 PM
- cron: 29 19 * * 4
workflow_dispatch:

jobs:
trivy:
name: Trivy
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
ignore-unfixed: true
Expand All @@ -24,7 +28,7 @@ jobs:
limit-severities-for-sarif: true

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

0 comments on commit 8bed666

Please sign in to comment.