Update README.md (#234)

Add permissions needed for creating a linked discussion.
This commit is contained in:
Brian Scholer 2022-05-23 02:37:32 -04:00 committed by GitHub
parent fe9a9bd329
commit 50195ba7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,6 +222,14 @@ permissions:
contents: write
```
When used with `discussion_category_name`, additional permission is needed:
```yaml
permissions:
contents: write
discussions: write
```
[GitHub token permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) can be set for an individual job, workflow, or for Actions as a whole.
Doug Tangren (softprops) 2019