Github token results in Permission denied to github-actions
See original GitHub issueNote that an issue which does not follow the template will be closed silently.
Check list before opening this issue
- I read the latest README
- I checked Available Options
- I followed Tips and FAQ
- I tried Workflow Examples
Describe your question
I’m setting this up for a jupyterbook (new beta version). When I add this for the first time in a repo using GITHUB_TOKEN (normally I push across repos so have not been able to use the token method for actions-gh-pages before), I get the CI error: “Permission to scikit-hep/scikit-hep-tutorials.git denied to github-actions”. I’ve tried adding a gh-pages branch in the repo, and it doesn’t change (mostly rerunning the action without a new commit). I do notice that:
/usr/bin/git remote rm origin
50
fatal: No such remote: 'origin'
51
[INFO] The process '/usr/bin/git' failed with exit code 128
Shows up earlier, but I don’t think that’s a problem, as it seems to continue after that. Here’s the problem part:
/usr/bin/git push origin --force gh-pages
109
remote: Permission to scikit-hep/scikit-hep-tutorials.git denied to github-actions[bot].
110
fatal: unable to access 'https://github.com/scikit-hep/scikit-hep-tutorials.git/': The requested URL returned error: 403
111
##[error]Action failed with "The process '/usr/bin/git' failed with exit code 128"
I think this is likely a user error, but I don’t see what I might have broken. The initial setup in the logs looks fine. I’ve tried the 3.5.9 version recommended in the jupyter-book docs, and the latest version.
Link to your contents
- Repo: https://github.com/scikit-hep/scikit-hep-tutorials
- Workflow: https://github.com/scikit-hep/scikit-hep-tutorials/blob/master/.github/workflows/ci.yml
- Workflow run: https://github.com/scikit-hep/scikit-hep-tutorials/runs/700284075?check_suite_focus=true
Screenshots
If applicable, add screenshots to help explain your question.
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top GitHub Comments
This issue was a temporary problem caused by the degradation of GitHub.
Thanks all for reporting!
Sorry, do not mind. I was waked up by many CI errors at midnight. I am so sleepy I misunderstood.