Skip to content

Commit

Permalink
ci: specify a different repository for trivy-db to avoid ratelimit er…
Browse files Browse the repository at this point in the history
…rors seen on CD runs
  • Loading branch information
fibble committed Oct 7, 2024
1 parent 3d8de73 commit c8a6442
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
with:
image-ref: ${{ steps.build-and-push.outputs.imageid }}
skip-dirs: /var/clamav
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2

- name: Setup Notation CLI
if: ${{ inputs.push }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/security-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
output: "trivy-results.sarif"
severity: "MEDIUM,HIGH,CRITICAL"
limit-severities-for-sarif: true
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
- name: Upload Results to GitHub Code Scanning
if: ${{ always() }}
uses: github/codeql-action/upload-sarif@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/security-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
output: "trivy-results.sarif"
severity: "CRITICAL"
limit-severities-for-sarif: true
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
- name: Upload Results to GitHub Code Scanning
if: ${{ always() }}
uses: github/codeql-action/upload-sarif@v3
Expand Down
2 changes: 1 addition & 1 deletion app/api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ phpcs.xml
phpstan.neon
phpunit.xml
psalm.xml
# Trigger CD - 2024-10-07-1217
# Trigger CD - 2024-10-07-1613
2 changes: 1 addition & 1 deletion app/cdn/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ composer.lock
editorconfig.org
assets/vendor
.scannerwork/
# Trigger CD - 2024-10-07-1217
# Trigger CD - 2024-10-07-1613
2 changes: 1 addition & 1 deletion app/internal/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ phpcs.xml
phpstan.neon
phpunit.xml
psalm.xml
# Trigger CD - 2024-10-07-1217
# Trigger CD - 2024-10-07-1613

2 changes: 1 addition & 1 deletion app/selfserve/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ phpcs.xml
phpstan.neon
phpunit.xml
psalm.xml
# Trigger CD - 2024-10-07-1217
# Trigger CD - 2024-10-07-1613

0 comments on commit c8a6442

Please sign in to comment.