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?
Amina
03/31/2023, 9:58 PM
According to this doc - It should be Repo -> Administration -> read
Amina
03/31/2023, 9:58 PM
I tried it with read and write but that didn’t work either.