From d21d8f35c165b49f616b773d5c3104a616481b37 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Tue, 25 Oct 2022 09:41:03 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20Use=20root=20user=20in=20distrol?= =?UTF-8?q?ess=20to=20support=20GitHub=20Actions=20(#994)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use root distroless to support GitHub Actions Signed-off-by: Spencer Schrock * Add template policy file back. TODO determine if we should replace this with a different template Signed-off-by: Spencer Schrock Signed-off-by: Spencer Schrock --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 40ae7f78..537ff525 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,8 @@ ARG TARGETOS ARG TARGETARCH RUN CGO_ENABLED=0 make build -FROM gcr.io/distroless/base:nonroot@sha256:99133cb0878bb1f84d1753957c6fd4b84f006f2798535de22ebf7ba170bbf434 +# Need root for GitHub Actions support +FROM gcr.io/distroless/base@sha256:122585ba4c098993df9f8dc7285433e8a19974de32528ee3a4b07308808c84ce COPY --from=build /src/scorecard-action / +COPY policies/template.yml /policy.yml ENTRYPOINT [ "/scorecard-action" ]