Skip to content

Commit 71484c2

Browse files
henriklundstromterakoya76
authored andcommitted
fix: Permission for GitHub app to support mergeable minus apply check (runatlantis#4902)
1 parent 1864866 commit 71484c2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

runatlantis.io/docs/access-credentials.md

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ GitHub App needs these permissions. These are automatically set when a GitHub ap
9595
Since v0.19.7, a new permission for `Administration` has been added. If you have already created a GitHub app, updating Atlantis to v0.19.7 will not automatically add this permission, so you will need to set it manually.
9696

9797
Since v0.22.3, a new permission for `Members` has been added, which is required for features that apply permissions to an organizations team members rather than individual users. Like the `Administration` permission above, updating Atlantis will not automatically add this permission, so if you wish to use features that rely on checking team membership you will need to add this manually.
98+
99+
A new permission for `Actions` has been added, which is required for checking if a pull request is mergbeably bypassing the apply check. Updating Atlantis will not automatically add this permission, so you will need to add this manually.
98100
:::
99101

100102
| Type | Access |
@@ -108,6 +110,7 @@ Since v0.22.3, a new permission for `Members` has been added, which is required
108110
| Pull requests | Read and write |
109111
| Webhooks | Read and write |
110112
| Members | Read-only |
113+
| Actions | Read-only |
111114

112115
### GitLab
113116

server/controllers/github_app_controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (g *GithubAppController) New(w http.ResponseWriter, _ *http.Request) {
123123
"statuses": "write",
124124
"administration": "read",
125125
"members": "read",
126+
"actions": "read",
126127
},
127128
}
128129

0 commit comments

Comments
 (0)