forked from juice-shop/juice-shop
-
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 branch 'juice-shop:master' into master
- Loading branch information
Showing
631 changed files
with
15,174 additions
and
2,543 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
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
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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vagrant/ @wurstbrot | ||
/test/cypress/ @ShubhamPalriwala | ||
/frontend/src/app/score-board-preview @J12934 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -7,11 +7,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out Git repository" | ||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f #v2: v2.3.4 available | ||
- name: "Use Node.js 14" | ||
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e #v1: v2.x available | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 | ||
- name: "Use Node.js 18" | ||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d #v3.8.1 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
- name: "Install CLI tools" | ||
run: npm install -g @angular/cli | ||
- name: "Install application" | ||
|
@@ -21,11 +21,11 @@ jobs: | |
npm install --ignore-scripts --legacy-peer-deps | ||
- name: "Fix everything which can be fixed" | ||
run: 'npm run lint:fix' | ||
- uses: stefanzweifel/git-auto-commit-action@v4.0.0 | ||
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a #v4.16.0 | ||
with: | ||
commit_message: "Auto-fix linting issues" | ||
branch: ${{ github.head_ref }} | ||
commit_options: '--signoff' | ||
commit_user_name: JuiceShopBot | ||
commit_user_email: [email protected] | ||
commit_author: JuiceShopBot <[email protected]> | ||
commit_author: JuiceShopBot <[email protected]> |
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18 as installer | ||
FROM node:18-buster as installer | ||
COPY . /juice-shop | ||
WORKDIR /juice-shop | ||
RUN npm i -g typescript ts-node | ||
|
@@ -15,7 +15,20 @@ RUN rm data/chatbot/botDefaultTrainingData.json || true | |
RUN rm ftp/legal.md || true | ||
RUN rm i18n/*.json || true | ||
|
||
FROM gcr.io/distroless/nodejs:18 | ||
ARG CYCLONEDX_NPM_VERSION=latest | ||
RUN npm install -g @cyclonedx/cyclonedx-npm@$CYCLONEDX_NPM_VERSION | ||
RUN npm run sbom | ||
|
||
# workaround for libxmljs startup error | ||
FROM node:18-buster as libxmljs-builder | ||
WORKDIR /juice-shop | ||
RUN apt-get update && apt-get install -y build-essential python3 | ||
COPY --from=installer /juice-shop/node_modules ./node_modules | ||
RUN rm -rf node_modules/libxmljs2/build && \ | ||
cd node_modules/libxmljs2 && \ | ||
npm run build | ||
|
||
FROM gcr.io/distroless/nodejs18-debian11 | ||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
LABEL maintainer="Bjoern Kimminich <[email protected]>" \ | ||
|
@@ -25,13 +38,14 @@ LABEL maintainer="Bjoern Kimminich <[email protected]>" \ | |
org.opencontainers.image.vendor="Open Web Application Security Project" \ | ||
org.opencontainers.image.documentation="https://help.owasp-juice.shop" \ | ||
org.opencontainers.image.licenses="MIT" \ | ||
org.opencontainers.image.version="15.0.0" \ | ||
org.opencontainers.image.version="15.3.0" \ | ||
org.opencontainers.image.url="https://owasp-juice.shop" \ | ||
org.opencontainers.image.source="https://github.com/juice-shop/juice-shop" \ | ||
org.opencontainers.image.revision=$VCS_REF \ | ||
org.opencontainers.image.created=$BUILD_DATE | ||
WORKDIR /juice-shop | ||
COPY --from=installer --chown=65532:0 /juice-shop . | ||
COPY --chown=65532:0 --from=libxmljs-builder /juice-shop/node_modules/libxmljs2 ./node_modules/libxmljs2 | ||
USER 65532 | ||
EXPOSE 3000 | ||
CMD ["/juice-shop/build/app.js"] |
Oops, something went wrong.