Skip to content

Commit

Permalink
ci: avoid Trivy action rate limiting (#451)
Browse files Browse the repository at this point in the history
Trivy's ghcr.io container is globally rate limited. I guess that mean's
Trivy is pretty popular!

This PR switches to a different database location so that we can avoid
the ratelimit, which was causing the daily security scans to fail.
  • Loading branch information
cwaldren-ld authored Oct 14, 2024
1 parent c2e3ae9 commit 57277e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
needs: go-versions
runs-on: ubuntu-latest
name: "Trivy Scan of Docker Image"
env:
# Avoid rate-limiting on ghcr.io (https://github.com/aquasecurity/trivy-action/issues/389)
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
steps:
- uses: actions/checkout@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/daily-security-scan-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: aquasecurity/trivy-action@master
env:
# Avoid rate-limiting on ghcr.io (https://github.com/aquasecurity/trivy-action/issues/389)
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: launchdarkly/ld-relay:${{ matrix.tag }}
format: 'table'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/daily-security-scan-distroless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: aquasecurity/trivy-action@master
env:
# Avoid rate-limiting on ghcr.io (https://github.com/aquasecurity/trivy-action/issues/389)
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
with:
image-ref: launchdarkly/ld-relay:${{ matrix.tag }}
format: 'table'
Expand Down

0 comments on commit 57277e3

Please sign in to comment.