Closed mickael-h closed 12 months ago
Ok I found the issue. You need to grand both read and write permissions for the workflows in the repository and the organisation, if the repo is part of one. See this topic: https://github.com/orgs/community/discussions/21061
Had a similar issue where vercel-action wasn't able to comment on the commit (it does that if the trigger was a push rather than a PR). To fix it, you have to enable write
permission for contents
.
permissions:
contents: write # <-- This one
deployments: write
pull-requests: write
For reference, this was the logged error:
...
this is push event
find comment
previous comment not found
Error: Resource not accessible by integration
The deployment works but everything else fails afterwards. I tried messing with the parameters of the action but this is the best outcome I could get. Everything else that I've tried end up being asked to re-authenticate after the deployment, or the deployment would work at all.
My implementation of the action
The output from Github CI: