-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move to only public ecr for trivy as there ratelimits are higher
- Change trivy-action to pull from ecr registry Signed-off-by: Shailesh Pant <[email protected]>
- Loading branch information
1 parent
0e16aff
commit 20be334
Showing
1 changed file
with
9 additions
and
3 deletions.
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 |
---|---|---|
|
@@ -23,7 +23,9 @@ jobs: | |
docker build --pull -t docker.io/securefederatedai/openfl:${{ github.sha }} -f openfl-docker/Dockerfile.base . | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
image-ref: 'docker.io/securefederatedai/openfl:${{ github.sha }}' | ||
format: 'sarif' | ||
|
@@ -46,7 +48,7 @@ jobs: | |
--ignore-unfixed \ | ||
--vuln-type os,library \ | ||
--severity CRITICAL,HIGH,MEDIUM,LOW \ | ||
--db-repository 'ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db' \ | ||
--db-repository 'public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db' \ | ||
. | ||
- name: Upload Code Vulnerability Scan Results | ||
|
@@ -57,6 +59,8 @@ jobs: | |
|
||
- name: Run Trivy vulnerability scanner for Docker image (JSON Output) | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
image-ref: 'docker.io/securefederatedai/openfl:${{ github.sha }}' | ||
format: 'json' | ||
|
@@ -80,7 +84,7 @@ jobs: | |
--ignore-unfixed \ | ||
--vuln-type os,library \ | ||
--severity CRITICAL,HIGH,MEDIUM,LOW \ | ||
--db-repository 'ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db' \ | ||
--db-repository 'public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db' \ | ||
. | ||
- name: Upload Code Vulnerability Scan Results | ||
|
@@ -91,6 +95,8 @@ jobs: | |
|
||
- name: Run Trivy vulnerability scanner for Docker image (SPDX-JSON Output) | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
image-ref: 'docker.io/securefederatedai/openfl:${{ github.sha }}' | ||
format: 'spdx-json' | ||
|