Skip to content

Commit b329411

Browse files
committed
Merge branch 'main' into hash-finding
2 parents dd82a81 + 86f2197 commit b329411

58 files changed

Lines changed: 644 additions & 461 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yaml‎

Lines changed: 571 additions & 423 deletions
Large diffs are not rendered by default.

‎CODE_OF_CONDUCT.md‎

Lines changed: 0 additions & 1 deletion

‎CONTRIBUTING.md‎

Lines changed: 12 additions & 2 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions

‎hooks/declarative-subsequent-scans/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ARG namespace
12
ARG baseImageTag
23
FROM node:12-alpine as install
34
RUN mkdir -p /home/app
@@ -13,7 +14,7 @@ RUN npm ci
1314
COPY hook.ts scan-helpers.ts kubernetes-label-selector.ts ./
1415
RUN npm run build
1516

16-
FROM securecodebox/hook-sdk-nodejs:${baseImageTag:-latest}
17+
FROM ${namespace:-securecodebox}/hook-sdk-nodejs:${baseImageTag:-latest}
1718
WORKDIR /home/app/hook-wrapper/hook/
1819
COPY --from=install --chown=app:app /home/app/node_modules/ ./node_modules/
1920
COPY --from=build --chown=app:app /home/app/hook.js /home/app/hook.js.map /home/app/scan-helpers.js /home/app/scan-helpers.js.map /home/app/kubernetes-label-selector.js /home/app/kubernetes-label-selector.js.map ./

‎hooks/declarative-subsequent-scans/README.md‎

Lines changed: 1 addition & 1 deletion

‎hooks/declarative-subsequent-scans/values.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
# image.repository -- Hook image repository
7-
repository: docker.io/securecodebox/hook-declarative-subsequent-scans
7+
repository: docker.io/securecodebox/declarative-subsequent-scans
88
# image.tag -- The image Tag defaults to the charts version if not defined.
99
# @default -- defaults to the charts version
1010
tag: null

‎hooks/finding-post-processing/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
ARG namespace
1516
ARG baseImageTag
1617
FROM node:12-alpine as build
1718
RUN mkdir -p /home/app
1819
WORKDIR /home/app
1920
COPY package.json package-lock.json ./
2021
RUN npm ci --production
2122

22-
FROM securecodebox/hook-sdk-nodejs:${baseImageTag:-latest}
23+
FROM ${namespace:-securecodebox}/hook-sdk-nodejs:${baseImageTag:-latest}
2324
WORKDIR /home/app/hook-wrapper/hook/
2425
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
2526
COPY --chown=app:app ./hook.js ./hook.js

‎hooks/generic-webhook/Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
ARG namespace
12
ARG baseImageTag
23
FROM node:12-alpine as build
34
RUN mkdir -p /home/app
45
WORKDIR /home/app
56
COPY package.json package-lock.json ./
67
RUN npm ci --production
78

8-
FROM securecodebox/hook-sdk-nodejs:${baseImageTag:-latest}
9+
FROM ${namespace:-securecodebox}/hook-sdk-nodejs:${baseImageTag:-latest}
910
WORKDIR /home/app/hook-wrapper/hook/
1011
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
1112
COPY --chown=app:app ./hook.js ./hook.js
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
ARG namespace
12
ARG baseImageTag
23
FROM node:12-alpine as build
34
RUN mkdir -p /home/app
45
WORKDIR /home/app
56
COPY package.json package-lock.json ./
67
RUN npm ci --production
78

8-
FROM securecodebox/hook-sdk-nodejs:${baseImageTag:-latest}
9+
FROM ${namespace:-securecodebox}/hook-sdk-nodejs:${baseImageTag:-latest}
910
WORKDIR /home/app/hook-wrapper/hook/
1011
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
1112
COPY --chown=app:app ./hook.js ./hook.js

0 commit comments

Comments
 (0)