Skip to content

Commit 75ae7a9

Browse files
fix: trivy failure in codeql action (#211)
* fix: trivy failure in codeql action Signed-off-by: Vishal Choudhary <[email protected]> * feat: bump trivy Signed-off-by: Vishal Choudhary <[email protected]> --------- Signed-off-by: Vishal Choudhary <[email protected]>
1 parent a1de36c commit 75ae7a9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: .github/workflows/codeql.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929
- name: Run Trivy vulnerability scanner in repo mode
30-
uses: aquasecurity/trivy-action@84384bd6e777ef152729993b8145ea352e9dd3ef # v0.17.0
30+
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0
3131
with:
3232
scan-type: fs
3333
ignore-unfixed: false
@@ -37,8 +37,12 @@ jobs:
3737
scanners: vuln,secret
3838
exit-code: '0'
3939
vuln-type: os,library
40+
env:
41+
# Trivy is returning TOOMANYREQUESTS
42+
# See: https://github.com/aquasecurity/trivy-action/issues/389#issuecomment-2385416577
43+
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
4044
- name: Upload Trivy scan results to GitHub Security tab
4145
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
4246
with:
4347
sarif_file: trivy-results.sarif
44-
category: code
48+
category: code

0 commit comments

Comments
 (0)