Skip to content

Commit baf1727

Browse files
committed
bom in docker image
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a180ef2 commit baf1727

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ vagrant/
99
logs/
1010
Dockerfile
1111
.npmrc
12+
/bom.json
13+
/bom.xml
1214

1315
# Pattern is *not covered* by node_modules/ above no matter what IntelliJ says!
1416
frontend/node_modules/

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ jobs:
335335
build-args: |
336336
VCS_REF=${{ env.VCS_REF }}
337337
BUILD_DATE=${{ env.BUILD_DATE }}
338+
CYCLONEDX_NPM_VERSION=${{ env.CYCLONEDX_NPM_VERSION }}
338339
heroku:
339340
if: github.repository == 'juice-shop/juice-shop' && github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
340341
needs: [test, api-test, e2e, custom-config-test]

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
build-args: |
8181
VCS_REF=${{ env.VCS_REF }}
8282
BUILD_DATE=${{ env.BUILD_DATE }}
83+
CYCLONEDX_NPM_VERSION=${{ env.CYCLONEDX_NPM_VERSION }}
8384
notify-slack:
8485
if: always()
8586
needs:

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ RUN rm data/chatbot/botDefaultTrainingData.json || true
1515
RUN rm ftp/legal.md || true
1616
RUN rm i18n/*.json || true
1717

18+
ARG CYCLONEDX_NPM_VERSION=latest
19+
RUN npm install -g @cyclonedx/cyclonedx-npm@$CYCLONEDX_NPM_VERSION
20+
RUN npm run sbom
21+
1822
FROM gcr.io/distroless/nodejs:18
1923
ARG BUILD_DATE
2024
ARG VCS_REF

0 commit comments

Comments
 (0)