Skip to content

Commit 7027b76

Browse files
authored
Update README.md - explicated permission error resolution
1 parent 81c65b7 commit 7027b76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,14 @@ jobs:
217217

218218
### Permissions
219219

220-
This actions requires writes access to the release. If you are using [granular permissions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)
221-
in your workflow, you will need to add the `contents: write` permission to the token:
220+
This actions requires writes access to the release. If you are encountering "resource not accessible by integration" errors, you will need to add the `contents: write` permission to the token using [granular permissions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions):
222221

223222
```yaml
224223
permissions:
225224
contents: write
226225
```
227226

228-
By default, these permissions are granted on `push` but not on `pr` - and you should be wary of adding them, as they allow [wide access to changing the entire repo's contents](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents)
227+
By default, these permissions are granted on `push` but not on `pr` - and you should be wary of adding them to workflows that run on pr, as they allow [wide access to changing the entire repo's contents](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents)
229228

230229
## Releasing
231230

0 commit comments

Comments
 (0)