Skip to content

Commit 65de030

Browse files
Merge pull request #123 from kaleido-io/vuln-check
adding high/critical severity vuln checks
2 parents 9578869 + e99567b commit 65de030

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.trivyignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# not relevant to the way grpc is used in fabconnect
2+
# see https://github.com/hyperledger/firefly-fabconnect/pull/123#discussion_r1543748524
3+
GHSA-m425-mq94-257g

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ RUN mkdir /.cache \
77
&& chmod -R g+rwX /.cache
88
RUN make
99

10+
FROM alpine:3.19 AS SBOM
11+
WORKDIR /
12+
COPY . /SBOM
13+
RUN apk add --no-cache curl
14+
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.48.3
15+
RUN trivy fs --format spdx-json --output /sbom.spdx.json /SBOM
16+
RUN trivy sbom /sbom.spdx.json --severity UNKNOWN,HIGH,CRITICAL --exit-code 1 --ignorefile /SBOM/.trivyignore
17+
1018
FROM alpine:3.19
1119
RUN apk add curl
1220
WORKDIR /fabconnect
1321
COPY --from=fabconnect-builder /fabconnect/fabconnect ./
1422
ADD ./openapi ./openapi/
1523
RUN ln -s /fabconnect/fabconnect /usr/bin/fabconnect
24+
COPY --from=SBOM /sbom.spdx.json /sbom.spdx.json
1625
ENTRYPOINT [ "fabconnect" ]

0 commit comments

Comments
 (0)