forked from nrkno/sofie-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nrkno#1267 from nrkno/ci/trivy-db-image-rate-limiting
ci: use custom trivy database image
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,7 +233,7 @@ jobs: | |
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0 | ||
uses: aquasecurity/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
image-ref: "${{ steps.trivy-image.outputs.image }}" | ||
format: "table" | ||
|
@@ -383,6 +383,8 @@ jobs: | |
- name: Trivy scanning | ||
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0 | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
image-ref: "${{ steps.trivy-image.outputs.image }}" | ||
format: "table" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,17 @@ jobs: | |
steps: | ||
- name: Run Trivy vulnerability scanner (json) | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest | ||
format: json | ||
output: '${{ matrix.image }}-trivy-scan-results.json' | ||
|
||
- name: Run Trivy vulnerability scanner (table) | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest | ||
output: '${{ matrix.image }}-trivy-scan-results.txt' | ||
|
@@ -37,6 +41,8 @@ jobs: | |
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db | ||
with: | ||
format: 'github' | ||
output: 'dependency-results-${{ matrix.image }}.sbom.json' | ||
|