Skip to content

Commit

Permalink
fixup! feat: scanning the entire repository
Browse files Browse the repository at this point in the history
Update trivy.yml
  • Loading branch information
emanuelaepure10 committed Jun 5, 2024
1 parent a8c969b commit a8b9cd7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ jobs:
# branch: update-vulnerabilities
# base: master

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'

- name: Install Trivy
run: |
sudo apt-get update
sudo apt-get install wget -y
wget https://github.com/aquasecurity/trivy/releases/download/v0.34.0/trivy_0.34.0_Linux-64bit.deb
sudo dpkg -i trivy_0.34.0_Linux-64bit.deb
- name: Scan the entire repository
run: |
echo "Scanning the entire repository..."
trivy fs .
- 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 a8b9cd7

Please sign in to comment.