Skip to content

Commit 573ed2c

Browse files
committed
fix: use PVTR_VERSION arg in plugins.json instead of hardcoded version
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent 581eefd commit 573ed2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/services/docker/Dockerfile.security_best_practices_worker

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FROM golang:1.26.3-alpine3.23 AS plugin
1212
RUN apk add --no-cache make git
1313
WORKDIR /plugin
1414
ARG PVTR_COMMIT=c7bd9538d64f7eaab94a05c9b5fd05458a387b1c
15+
ARG PVTR_VERSION=v0.23.2
1516
# To run the latest version of the plugin, we need to use the latest commit of the pvtr-github-repo-scanner repository.
1617
# Currently using v0.23.2: https://github.com/ossf/pvtr-github-repo-scanner/commit/c7bd9538d64f7eaab94a05c9b5fd05458a387b1c
1718
RUN git clone https://github.com/ossf/pvtr-github-repo-scanner.git && cd pvtr-github-repo-scanner && git checkout ${PVTR_COMMIT}
@@ -35,8 +36,9 @@ FROM node:20-bookworm-slim as runner
3536
RUN mkdir -p /.privateer/bin
3637
WORKDIR /.privateer/bin
3738
COPY --from=core /app/pvtr ./privateer
39+
ARG PVTR_VERSION=v0.23.2
3840
COPY --from=plugin /plugin/github-repo /root/.privateer/bin/github-repo
39-
RUN echo '{"plugins":[{"name":"github-repo","version":"v0.23.2","binaryPath":"github-repo"}]}' > /root/.privateer/bin/plugins.json
41+
RUN echo "{\"plugins\":[{\"name\":\"github-repo\",\"version\":\"${PVTR_VERSION}\",\"binaryPath\":\"github-repo\"}]}" > /root/.privateer/bin/plugins.json
4042
COPY ./services/apps/security_best_practices_worker/example-config.yml /.privateer/example-config.yml
4143

4244
WORKDIR /usr/crowd/app

0 commit comments

Comments
 (0)