Nice write up!
I think ${{ secrets.ACCESS_TOKEN }} in your example can be replaced with ${{ secrets.GITHUB_TOKEN }}, which is a repo-scoped token automatically generated for you by GitHub. Did you try this?
${{ secrets.ACCESS_TOKEN }}
${{ secrets.GITHUB_TOKEN }}
Thanks!
I just tried it, but it didn't work. Also, I couldn't find the documentation about this auto generated token.
Hmmm. It’s documented here:
help.github.com/en/articles/virtua...
But maybe it doesn’t carry the right permissions for your use case. Did you get a permissions error?
When the Action try to push the changes, it pops this error in the logs:
fatal: could not read Password for 'https://***@github.com': No such device or address
That must be a permissions error. The personal access token that I generated before (ACCESS_TOKEN) had full control of my private repositories.
ACCESS_TOKEN
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice write up!
I think
${{ secrets.ACCESS_TOKEN }}
in your example can be replaced with${{ secrets.GITHUB_TOKEN }}
, which is a repo-scoped token automatically generated for you by GitHub. Did you try this?Thanks!
I just tried it, but it didn't work.
Also, I couldn't find the documentation about this auto generated token.
Hmmm. It’s documented here:
But maybe it doesn’t carry the right permissions for your use case. Did you get a permissions error?
When the Action try to push the changes, it pops this error in the logs:
fatal: could not read Password for 'https://***@github.com': No such device or address
That must be a permissions error. The personal access token that I generated before (
ACCESS_TOKEN
) had full control of my private repositories.