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 4c256d7 commit d213709
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@ jobs:
# branch: update-vulnerabilities
# base: master

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
target: '/home/runner/work/hale/hale' # specify the target directory or file
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
debug: true
- name: Run Trivy scan
run: |
trivy fs --target /home/runner/work/hale/hale --debug --format sarif --output trivy-results.sarif
#- name: Run Trivy vulnerability scanner
# uses: aquasecurity/[email protected]
# with:
# scan-type: 'fs'
# target: '/home/runner/work/hale/hale'
# format: 'sarif'
# output: 'trivy-results.sarif'
# severity: 'CRITICAL,HIGH'
# debug: true

- name: Upload Trivy scan results to file
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit d213709

Please sign in to comment.