-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed the cicd audit check (#326)
* Initial Commit * added start script to adapter * cleanup * cleanup * cleanup * cicd * cicd * cicd * cicd * cicd * cicd * cicd * chore: fixed api-svc api templates for inbound and outbound paths to correctly resolve dependent yamls * chore: fixes for monorepo - removed global eslint config, and added eslint to each module - renamed start:adapter root package script to start:api-svc and fixed the command - added missing dependencies to module/api-svc to fix unit tests * fix: api-snippets * fix: cicd * fix: cicd * fix: cicd * fix: cicd * fix: cicd * fix: cicd * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check * fix: cicd audit check Co-authored-by: Miguel de Barros <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,032 additions
and
34,129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
FROM node:16.15.0-alpine as builder | ||
|
||
# RUN apk add --no-cache git python3 build-base | ||
|
||
# EXPOSE 3000 | ||
|
||
# WORKDIR /src | ||
|
||
# # This is super-ugly, but it means we don't have to re-run npm install every time any of the source | ||
# # files change- only when any dependencies change- which is a superior developer experience when | ||
# # relying on docker-compose. | ||
# COPY ./package.json . | ||
# COPY ./package-lock.json . | ||
# RUN npm ci --only=production | ||
# FROM node:16.15.0-alpine | ||
|
||
# ARG BUILD_DATE | ||
# ARG VCS_URL | ||
# ARG VCS_REF | ||
# ARG VERSION | ||
|
||
# # See http://label-schema.org/rc1/ for label schema info | ||
# LABEL org.label-schema.schema-version="1.0" | ||
# LABEL org.label-schema.name="sdk-scheme-adapter" | ||
# LABEL org.label-schema.build-date=$BUILD_DATE | ||
# LABEL org.label-schema.vcs-url=$VCS_URL | ||
# LABEL org.label-schema.vcs-ref=$VCS_REF | ||
# LABEL org.label-schema.url="https://mojaloop.io/" | ||
# LABEL org.label-schema.version=$VERSION | ||
|
||
# COPY --from=builder /src/ /src | ||
# COPY ./src ./src | ||
# COPY ./secrets / | ||
|
||
# CMD ["node", "src/index.js"] | ||
RUN apk add --no-cache git python3 build-base | ||
|
||
EXPOSE 3000 | ||
|
||
WORKDIR /src | ||
|
||
# This is super-ugly, but it means we don't have to re-run npm install every time any of the source | ||
# files change- only when any dependencies change- which is a superior developer experience when | ||
# relying on docker-compose. | ||
COPY ./package.json . | ||
COPY ./package-lock.json . | ||
RUN npm ci --only=production | ||
FROM node:16.15.0-alpine | ||
|
||
ARG BUILD_DATE | ||
ARG VCS_URL | ||
ARG VCS_REF | ||
ARG VERSION | ||
|
||
# See http://label-schema.org/rc1/ for label schema info | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.name="sdk-scheme-adapter" | ||
LABEL org.label-schema.build-date=$BUILD_DATE | ||
LABEL org.label-schema.vcs-url=$VCS_URL | ||
LABEL org.label-schema.vcs-ref=$VCS_REF | ||
LABEL org.label-schema.url="https://mojaloop.io/" | ||
LABEL org.label-schema.version=$VERSION | ||
|
||
COPY --from=builder /src/ /src | ||
COPY ./src ./src | ||
COPY ./secrets / | ||
|
||
CMD ["node", "src/index.js"] | ||
|
||
|
||
# TODO: compose the docker image |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json", | ||
// audit-ci supports reading JSON, JSONC, and JSON5 config files. | ||
// Only use one of ["low": true, "moderate": true, "high": true, "critical": true] | ||
"moderate": true, | ||
"allowlist": [ | ||
"GHSA-282f-qqgm-c34q", | ||
"GHSA-v88g-cgmw-v5xw", | ||
"GHSA-mjxr-4v3x-q3m4", | ||
"GHSA-p9pc-299p-vxgp", | ||
"GHSA-6vfc-qv3f-vr6c", | ||
"GHSA-rjqq-98f6-6j3r", | ||
"GHSA-phwq-j96m-2c2q", | ||
"GHSA-pfrx-2q88-qq97" | ||
] | ||
} |
File renamed without changes.
Oops, something went wrong.