Skip to content

Commit

Permalink
fixup! feat: scanning the entire repository
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelaepure10 committed Jun 5, 2024
1 parent a8c969b commit 0c43f7b
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,21 @@ 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: Upload Trivy scan results to file
uses: actions/upload-artifact@v2
with:
name: trivy-results
path: trivy-results.sarif

- 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 0c43f7b

Please sign in to comment.