Skip to content

Commit dcb4d60

Browse files
committed
test 4
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 4b83c28 commit dcb4d60

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/actions/gotools/action.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
go-version:
55
description: "Go version to install"
66
required: true
7+
github-token:
8+
description: "Github Token"
9+
required: true
710
runs:
811
using: "composite"
912
steps:
@@ -13,4 +16,9 @@ runs:
1316
go-version: ${{ inputs.go-version }}
1417
- name: Install project tools and dependencies
1518
shell: bash
16-
run: make project-tools
19+
run: |
20+
git config --global credential.helper ""
21+
TOKEN="${{ inputs.github-token }}"
22+
git config --global url."https://${TOKEN}@github.com/".insteadOf "https://github.com/"
23+
24+
make project-tools

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
uses: ./.github/actions/gotools
4545
with:
4646
go-version: ${{ env.GO_VERSION }}
47+
github-token: ${{ env.GITHUB_TOKEN }}
4748
- name: Setup Node
4849
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # tag=v6.0.0
4950
with:

0 commit comments

Comments
 (0)