Ilia Kovalev

04/04/2023, 1:15 PM
Hi guys! Noticed a strange thing:
successfully ran \"terragrunt plan...
Unable to update status error: POST <>: 403 Resource not accessible by integration
github api docs say that
is the right endpoint, but atlantis is trying to hit
The full stacktrace:
403 Resource not accessible by integration [])","json":{},"stacktrace":"<*ProjectOutputWrapper).updateProjectPRStatus|*ProjectOutputWrapper).updateProjectPRStatus>\n\\*ProjectOutputWrapper).Plan\n\\\n\\*InstrumentedProjectCommandRunner).Plan\n\\*APIController).apiPlan\n\\*APIController).Plan\n\\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2109\*Router).ServeHTTP\n\\\n\\\n\\\n\\*RequestLogger).ServeHTTP\n\\\n\\*Recovery).ServeHTTP\n\\\n\\*Negroni).ServeHTTP\n\\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2947\nnet/http.(*conn).serve\n\tnet/http/server.go:1991"}
That causes some troubles: 1.
the workspace <workspace> is currently locked by...
2. unable to use pre-workflow-hooks 3. unable to use this project, it fails after hitting /api/plan with a timeout error What should i do in this case? Thank you


04/04/2023, 2:31 PM
403 Resource not accessible by integration
usually means that your access token doesn't have enough permissions granted
or your github app, depends on what you're using

Ilia Kovalev

04/04/2023, 3:17 PM
I think in the case of lack of permissions there would be forbidden access, here Atlantis hits a not supported method according to GitHub docs
My GitHub app has read write access to commit statuses

PePe Amengual

04/04/2023, 4:05 PM
from github you get 403 or 404 for lack of permissions, is all over the place
it could lack of Org read access too


04/05/2023, 3:18 AM
JFYI: I made an issue for this problem.
🎉 2

Ilia Kovalev

04/05/2023, 2:17 PM
but Atlantis wants to update statuses and has full permissions for it, i tried to give even more permissions but the error still occurs


04/05/2023, 9:51 PM
I added a comment where the code may need to be updated. Thank you for creating the issue. Looking forward to a pr that works for both github app and github non app
👀 1