Open benknight135 opened 2 years ago
I'm also seeing the same issue. I've tried a changing a few permissions on the job to no avail.
I've passed through this issue too and I've made a huge search by a solution.
This log is not even a bit intuitive. But, by the status code response (403), I've guessed that it could be something related to authorization. And it is!
Taking a look on the source code, I've found that it ocurrors when we make a action that our GITHUB_TOKEN is not supposed to do.
Solution: Include this lines on your workflow:
permissions:
contents: write
It can be at the job scope or at workflow at all.
This behavior can be setted to the whole repositry too. Go to:
Settings -> Actions -> General -> Workflow permissions -> Read and write permissions
source: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
PS: github.token is a context copy of GITHUB_TOKEN. So, if you don't understand from where cames this variable, that is the answer.
Received
Resource not accessible by integration
error when running in workflow.