Skip to content

Commit 3607e9f

Browse files
committed
ci: add ecr fallback for trivy db download
1 parent 38657f2 commit 3607e9f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.mega-linter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,11 @@ YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: "(codegen/functional/test/fixtures/|node_mod
4242

4343
COPYPASTE_JSCPD_CONFIG_FILE: .jscpd.json
4444

45+
# trivy's default DB registries (mirror.gcr.io, ghcr.io) have been hitting
46+
# TOOMANYREQUESTS during vulnerability DB download. Add the AWS ECR Public
47+
# mirror as a third fallback (setting this overrides the defaults, so they're
48+
# listed explicitly too) since it draws from a separate rate-limit pool.
49+
TRIVY_DB_REPOSITORY: "mirror.gcr.io/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db:2"
50+
4551
# shellcheck: warn only until active script work stabilises
4652
BASH_SHELLCHECK_DISABLE_ERRORS: true

0 commit comments

Comments
 (0)