File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Get latest CA certs & git
2- FROM alpine:3.19 as deps
1+ FROM golang:1.21-alpine AS builder
32
43# hadolint ignore=DL3018
54RUN apk --no-cache add ca-certificates git
65
6+ WORKDIR /app
7+ COPY go.mod go.sum ./
8+ RUN go mod download
9+ COPY . .
10+ RUN CGO_ENABLED=0 GOOS=linux go build -o /codeowners-validator .
11+
712FROM scratch
813
914LABEL org.opencontainers.image.source=https://github.com/step-security/codeowners-validator
1015
11- COPY ./codeowners-validator /codeowners-validator
12-
13- COPY --from=deps /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
14- COPY --from=deps /usr/bin/git /usr/bin/git
15- COPY --from=deps /usr/bin/xargs /usr/bin/xargs
16- COPY --from=deps /lib /lib
17- COPY --from=deps /usr/lib /usr/lib
16+ COPY --from=builder /codeowners-validator /codeowners-validator
17+ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
18+ COPY --from=builder /usr/bin/git /usr/bin/git
19+ COPY --from=builder /usr/bin/xargs /usr/bin/xargs
20+ COPY --from=builder /lib /lib
21+ COPY --from=builder /usr/lib /usr/lib
1822
1923ENTRYPOINT ["/codeowners-validator" ]
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func validateSubscription() {
6666 }
6767 }
6868
69- upstream := "chuhlomin/render-template "
69+ upstream := "mszostok/codeowners-validator "
7070 action := os .Getenv ("GITHUB_ACTION_REPOSITORY" )
7171 docsURL := "https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions"
7272
You can’t perform that action at this time.
0 commit comments