Skip to content

Commit cb22c86

Browse files
committed
configure private platform-mesh access for git in GHA
On-behalf-of: @SAP [email protected] Signed-off-by: Angel Kafazov <[email protected]>
1 parent 899bc44 commit cb22c86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
concurrency:
1414
group: ${{ github.ref }}
1515
cancel-in-progress: true
16-
uses: platform-mesh/.github/.github/workflows/pipeline-golang-app.yml@main
16+
uses: platform-mesh/.github/.github/workflows/pipeline-golang-app.yml@ci/with-token-arg
1717
secrets: inherit
1818
with:
1919
imageTagName: ghcr.io/platform-mesh/rebac-authz-webhook

Taskfile.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ tasks:
4747
env:
4848
GOPRIVATE: github.com/platform-mesh
4949
GO111MODULE: on
50-
PLATFORMMESH_TOKEN: ${PLATFORMMESH_TOKEN}
50+
PLATFORM_MESH_TOKEN: ${PLATFORM_MESH_TOKEN}
5151
cmds:
52+
- echo "https://openmfp:[email protected]" >> $HOME/.git-credentials
53+
- git config --global url."https://${PLATFORM_MESH_TOKEN}@github.com/".insteadOf "https://github.com/"
5254
- go test -count=1 ./... {{.ADDITIONAL_COMMAND_ARGS}}
5355
cover:
5456
cmds:

0 commit comments

Comments
 (0)