mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
Change the source of trivy-db to avoid 429 error (#21183)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
parent
d39d979736
commit
bccfd5fb41
6
.github/workflows/nightly-trivy-scan.yml
vendored
6
.github/workflows/nightly-trivy-scan.yml
vendored
@ -30,7 +30,11 @@ jobs:
|
|||||||
format: 'template'
|
format: 'template'
|
||||||
template: '@/contrib/sarif.tpl'
|
template: '@/contrib/sarif.tpl'
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
env:
|
||||||
|
# Use AWS' ECR mirror for the trivy-db image, as GitHub's Container
|
||||||
|
# Registry is returning a TOOMANYREQUESTS error.
|
||||||
|
# Ref: https://github.com/aquasecurity/trivy-action/issues/389
|
||||||
|
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user