Skip to content

Commit 557e23a

Browse files
committed
ci: add github actions authentication step
- configure git remote url with github token for authentication - ensure proper access for automated actions in the workflow
1 parent d1351e4 commit 557e23a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
git config --global user.name "Release Workflow"
6868
git config --global user.email "${{ secrets.GIT_EMAIL }}"
6969
70+
- name: Authenticate GitHub Actions
71+
run: git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
72+
7073
- name: Initialize the NPM config
7174
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
7275
env:

0 commit comments

Comments
 (0)