https://www.runatlantis.io/ logo
Title
d

Dan Williams

03/29/2023, 12:17 PM
Mergeable ignoring atlantis/apply requirement has been fixed by now in v0.23.3 right?
{“level”:“warn”,“ts”:“2023-03-29T12:07:17.664Z”,“caller”:“events/apply_command_runner.go:111",“msg”:“unable to get pull request status: fetching mergeability status for repo: <repo>, and pull number: 2640: getting pull request status: getting required status checks: GET https://api.github.com/repos/&lt;repo&gt;/branches/master/protection: 404 Not Found []. Continuing with mergeable and approved assumed false”,“json”:{“repo”:“<repo>“,”pull”:“2640”},“stacktrace”:github.com/runatlantis/atlantis/server/events.(*ApplyCommandRunner).Run\n\tgithub.com/runatlantis/atlantis/server/events/apply_command_runner.go:111\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand\n\tgithub.com/runatlantis/atlantis/server/events/command_runner.go:296”}
404 looking for branch protection but we definitely have branch protection set 🤔
1
r

RB

03/29/2023, 1:55 PM
This issue has been raised recently https://github.com/runatlantis/atlantis/issues/3268 And see this pr to fix in an upcoming release https://github.com/runatlantis/atlantis/pull/3276
d

Dan Williams

03/29/2023, 1:56 PM
Ah ok - I’ve managed to fix this in our org by adding the atlantis github user as an admin on the repos. Only admin role has permission to retrieve branch protection rules it seems.
r

RB

03/29/2023, 1:58 PM
That's very interesting and makes sense. Could you post that in the issue thread too?
d

Dan Williams

03/29/2023, 2:01 PM
Done
👍 1
a

Amina

03/31/2023, 9:57 PM
I’m running into this issue with a GitHub App. Does anyone happen to know the set of permissions to give the GitHub App that are equivalent to GitHub user getting admin role on repos?
According to this doc - It should be Repo -> Administration -> read
I tried it with read and write but that didn’t work either.
I’m actually getting a 403