File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ FROM golang:1.24 AS builder
22
33ENV GOSUMDB=off
44
5+ RUN git config --global credential.helper store
6+ RUN --mount=type=secret,id=org_token echo "https://gha:$(cat /run/secrets/org_token)@github.com" > /root/.git-credentials
7+
58WORKDIR /app
69
710COPY go.mod go.mod
Original file line number Diff line number Diff line change @@ -41,8 +41,14 @@ tasks:
4141 lint :
4242 deps : [setup:golangci-lint]
4343 cmds :
44+ -
echo "https://openmfp:[email protected] " >> $HOME/.git-credentials 45+ - git config --global url."https://${PLATFORM_MESH_TOKEN}@github.com/".insteadOf "https://github.com/"
4446 - task : fmt
4547 - " {{.LOCAL_BIN}}/golangci-lint run --timeout 15m ./..."
48+ env :
49+ GOPRIVATE : github.com/platform-mesh
50+ GO111MODULE : on
51+ PLATFORM_MESH_TOKEN : ${PLATFORM_MESH_TOKEN}
4652 test :
4753 env :
4854 GOPRIVATE : github.com/platform-mesh
You can’t perform that action at this time.
0 commit comments