Skip to content

Commit

Permalink
fix: use ECR trivy db repository
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Sestito <[email protected]>
  • Loading branch information
fabriziosestito committed Nov 15, 2024
1 parent badb7c1 commit 651df67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/handlers/scan_sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ func (h *ScanSBOMHandler) Handle(message messaging.Message) error {
"sbom",
"--cache-dir", h.workDir,
"--format", "sarif",
// Use the public ECR repository to bypass GitHub's rate limits.
// Refer to https://github.com/aquasecurity/trivy/discussions/7668 for details.
"--db-repository", "public.ecr.aws/aquasecurity/trivy-db",
"--java-db-repository", "public.ecr.aws/aquasecurity/trivy-java-db",
"--output", reportFile.Name(),
sbomFile.Name(),
})
Expand Down

0 comments on commit 651df67

Please sign in to comment.