Skip to content

Commit

Permalink
Fix clear cache command
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminastrand committed Jan 21, 2025
1 parent 4d35364 commit 97f5a2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
labels: ${{ steps.meta1.outputs.labels }}
file: Dockerfile

- name: Update Trivy database
run: trivy --cache-dir /tmp/trivy-db --update

# if push to master of release, run trivy scan on the image
- name: Trivy scan
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand All @@ -69,7 +72,6 @@ jobs:
output: 'trivy-results.sarif'
severity: HIGH,CRITICAL
vuln-type: 'os,library'
clear-cache: true
github-pat: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Trivy scan results to GitHub Security tab
Expand Down

0 comments on commit 97f5a2d

Please sign in to comment.