docs(readme): update the permissions docs to reflect the requirements of the default config (#512)
Fixes #511
This commit is contained in:
parent
d3bfc50685
commit
678bfc7a59
13
README.md
13
README.md
|
@ -11,17 +11,8 @@ The default configuration will:
|
||||||
## Recommended permissions
|
## Recommended permissions
|
||||||
|
|
||||||
For the execution of this action, it must be able to fetch all issues and pull requests from your repository.
|
For the execution of this action, it must be able to fetch all issues and pull requests from your repository.
|
||||||
This can be achieved with the following [configuration in the action](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions) if the permissions are restricted:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
permissions:
|
|
||||||
issues: read
|
|
||||||
pull-requests: read
|
|
||||||
```
|
|
||||||
|
|
||||||
In addition, based on the provided configuration, the action could require more permission(s) (e.g.: add label, remove label, comment, close, etc.).
|
In addition, based on the provided configuration, the action could require more permission(s) (e.g.: add label, remove label, comment, close, etc.).
|
||||||
You can find more information about the required permissions under the corresponding options that you wish to use.
|
This can be achieved with the following [configuration in the action](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions) if the permissions are restricted:
|
||||||
However, if don't want to bother, you can use these permissions:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -29,6 +20,8 @@ permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can find more information about the required permissions under the corresponding options that you wish to use.
|
||||||
|
|
||||||
## All options
|
## All options
|
||||||
|
|
||||||
### List of input options
|
### List of input options
|
||||||
|
|
Loading…
Reference in New Issue