Skip to content

Commit 99b8996

Browse files
committed
fix: use bot user/token
1 parent 18ace65 commit 99b8996

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/hermit.yml .github/workflows/ugprade-hermit.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: docker://golang:1.15
15+
env:
16+
GIT_USER: jenkins-x-bot-test
17+
GIT_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
1518
name: Upgrade hermit
1619
with:
1720
entrypoint: ./.github/workflows/upgrade-hermit.sh

.github/workflows/upgrade-hermit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for r in "${repos[@]}"
2525
do
2626
echo "upgrading repository https://github.com/jx3-gitops-repositories/$r"
2727
cd $TMPDIR
28-
git clone https://github.com/jx3-gitops-repositories/$r.git
28+
git clone https://$GIT_USER:$GIT_TOKEN@github.com/jx3-gitops-repositories/$r.git
2929
cd "$r"
3030

3131
source ./bin/activate-hermit

0 commit comments

Comments
 (0)