Skip to content

Commit

Permalink
use trivy ECR DB
Browse files Browse the repository at this point in the history
 - should avoid 429 we were seeing from ghcr
  • Loading branch information
shorsher committed Nov 1, 2024
1 parent 1939b67 commit edbfe46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ARG Definitions
# Consider adding default values for the ARGs based on this warning:
# Consider adding default values for the ARGs based on this warning:
# https://github.com/hyperledger/firefly/actions/runs/10795366695/job/29941873807#step:4:171
ARG FIREFLY_BUILDER_TAG
ARG FABRIC_BUILDER_TAG
Expand Down Expand Up @@ -64,10 +64,10 @@ RUN mkdir -p build/contracts \
FROM alpine:3.19 AS sbom
WORKDIR /
ADD . /SBOM
RUN apk add --no-cache curl
RUN apk add --no-cache curl
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.48.3
RUN trivy fs --format spdx-json --output /sbom.spdx.json /SBOM
RUN trivy sbom /sbom.spdx.json --severity UNKNOWN,HIGH,CRITICAL --exit-code 1
RUN trivy sbom /sbom.spdx.json --severity UNKNOWN,HIGH,CRITICAL --db-repository public.ecr.aws/aquasecurity/trivy-db --exit-code 1

# Final executable build
FROM $BASE_TAG
Expand Down

0 comments on commit edbfe46

Please sign in to comment.