question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github token results in Permission denied to github-actions

See original GitHub issue

Note that an issue which does not follow the template will be closed silently.

Check list before opening this issue

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

Screenshots

If applicable, add screenshots to help explain your question.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
peaceiriscommented, May 26, 2020

This issue was a temporary problem caused by the degradation of GitHub.

Thanks all for reporting!

1reaction
peaceiriscommented, May 22, 2020

Sorry, do not mind. I was waked up by many CI errors at midnight. I am so sleepy I misunderstood.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permission denied to github-actions[bot] even though PAT has ...
Hey all, I have an action where I am trying to push a change to the same repo. I am authenticating via personal...
Read more >
Permission denied to github-actions[bot] despite having PAT
The following is my workflow yaml file. I have uploaded a personal access token to the repo in question under the secrets tab...
Read more >
Token permissions for GitHub Actions - Damir's Corner
Although the message is not entirely clear, I quickly figured out that the problem was insufficient permissions. The action creates a check run ......
Read more >
GitHub Actions Security Best Practices [cheat sheet included]
The 'pull_request_target' trigger runs in the context of your target repo, meaning the workflow has access to YOUR secrets and write access to ......
Read more >
Permission denied (publickey) | Bitbucket Cloud Cloud KB
Problem. When attempting to clone, push or pull over SSH with Git, you receive the message. Permission denied (publickey) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found