Skip to content

Commit c34e56a

Browse files
fix private repo authorization
Issue: ZENKO-5259
1 parent 6791e41 commit c34e56a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/actions/setup-node-env/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ runs:
3434
- name: Configure GIT
3535
shell: bash
3636
run: |
37+
echo "machine github.com login x-access-token password ${GIT_ACCESS_TOKEN}" > ~/.netrc
38+
chmod 600 ~/.netrc
3739
git config --global url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/"
3840
git config --global --add url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "git@github.com:"
3941
git config --global --add url."https://x-access-token:${GIT_ACCESS_TOKEN}@github.com/".insteadOf "ssh://git@github.com/"

0 commit comments

Comments
 (0)