Skip to content

Commit 83e3310

Browse files
authored
docs: add info about merge queues permissions (#184)
1 parent 5e1dba7 commit 83e3310

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
122122
## Permissions in v2+
123123
124-
This Action uses Github API to find the last successful workflow run. If your `GITHUB_TOKEN` has restrictions set please ensure you override them for the workflow to enable read access to `actions` and `contents`:
124+
This Action uses Github API to find the last successful workflow run. If your `GITHUB_TOKEN` has restrictions set please ensure you override them for the workflow to enable read access to `actions` and `contents`. If you are using the action with `merge queues` you will need to enable also `pull-request` permission:
125125

126126
<!-- start permissions-in-v2 -->
127127

@@ -133,6 +133,7 @@ jobs:
133133
permissions:
134134
contents: 'read'
135135
actions: 'read'
136+
pull-requests: 'read'
136137
```
137138

138139
<!-- end permissions-in-v2 -->

0 commit comments

Comments
 (0)