My workflow has a step that creates tags and pushes them into another repo. It's been working correctly for years. However, I just changed from v4 to v6 (and v6.0.2) due to the Node.js 20 deprecation, I started getting an error like this:
Updated tag 'nightly' (was 6346b2238)
To https://github.com/xxxxx/xxxxx
+ 6346b2238...af5bc87be nightly -> nightly (forced update)
remote: Permission to xxxxx/xxxxx_nightlies.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/xxxxx/xxxxx_nightlies.git/': The requested URL returned error: 403
If I switch back to v4 or v5, it works correctly.
Here are the steps I am performing:
git remote add nightly_repo https://xxxxx:${{ secrets.XXXXX_TOKEN }}@github.com/xxxxx/xxxxx_nightlies.git
git config lfs.https://xxxxx:${{ secrets.xxxxx_TOKEN }}@github.com/xxxxx/xxxxx_nightlies.git.lfs.locksverify false
git fetch --unshallow
git tag -f nightly
git push -f origin nightly
git tag -f nightly-test
git config --unset-all http.https://github.com/.extraheader
git push -f nightly_repo nightly-test
git remote rm nightly_repo
My workflow has a step that creates tags and pushes them into another repo. It's been working correctly for years. However, I just changed from v4 to v6 (and v6.0.2) due to the Node.js 20 deprecation, I started getting an error like this:
If I switch back to v4 or v5, it works correctly.
Here are the steps I am performing: