Ilia Kovalev
04/04/2023, 1:15 PMsuccessfully ran \"terragrunt plan...
Unable to update status error: POST <https://api.github.com/repos/org/repo/statuses/master>: 403 Resource not accessible by integration
github api docs say that /repos/{owner}/{repo}/statuses/{sha}
is the right endpoint, but atlantis is trying to hit /repos/{owner}/{repo}/statuses/{branch}
The full stacktrace:
403 Resource not accessible by integration [])","json":{},"stacktrace":"<http://github.com/runatlantis/atlantis/server/events.(*ProjectOutputWrapper).updateProjectPRStatus|github.com/runatlantis/atlantis/server/events.(*ProjectOutputWrapper).updateProjectPRStatus>\n\tgithub.com/runatlantis/atlantis/server/events/project_command_runner.go:186\ngithub.com/runatlantis/atlantis/server/events.(*ProjectOutputWrapper).Plan\n\tgithub.com/runatlantis/atlantis/server/events/project_command_runner.go:155\ngithub.com/runatlantis/atlantis/server/events.RunAndEmitStats\n\tgithub.com/runatlantis/atlantis/server/events/instrumented_project_command_runner.go:68\ngithub.com/runatlantis/atlantis/server/events.(*InstrumentedProjectCommandRunner).Plan\n\tgithub.com/runatlantis/atlantis/server/events/instrumented_project_command_runner.go:37\ngithub.com/runatlantis/atlantis/server/controllers.(*APIController).apiPlan\n\tgithub.com/runatlantis/atlantis/server/controllers/api_controller.go:152\ngithub.com/runatlantis/atlantis/server/controllers.(*APIController).Plan\n\tgithub.com/runatlantis/atlantis/server/controllers/api_controller.go:90\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2109\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\tgithub.com/gorilla/mux@v1.8.0/mux.go:210\ngithub.com/urfave/negroni/v3.Wrap.func1\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:59\ngithub.com/urfave/negroni/v3.HandlerFunc.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:33\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/runatlantis/atlantis/server.(*RequestLogger).ServeHTTP\n\tgithub.com/runatlantis/atlantis/server/middleware.go:70\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/urfave/negroni/v3.(*Recovery).ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/recovery.go:210\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/urfave/negroni/v3.(*Negroni).ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:111\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 youtpol
04/04/2023, 2:31 PM403 Resource not accessible by integration
usually means that your access token doesn't have enough permissions grantedIlia Kovalev
04/04/2023, 3:17 PMPePe Amengual
04/04/2023, 4:05 PMpomcho555
04/05/2023, 3:18 AMIlia Kovalev
04/05/2023, 2:17 PMRB
04/05/2023, 9:51 PM