mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-13 04:01:14 +00:00
docs: Add permission condition to docs
This commit is contained in:
parent
187d0eb933
commit
8eb06e7554
1 changed files with 9 additions and 0 deletions
|
|
@ -147,6 +147,15 @@ permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If your repository is private, setting this setting removes all default permissions on your workflow, so for the actions/checkout step to work which is highly common, you will also need the `contents` permissions set.
|
||||||
|
Otherwise you will get an error such as "fatal: repository *** not found"
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: read
|
||||||
|
```
|
||||||
|
|
||||||
For more detailed information about permissions, you can read from the link below:
|
For more detailed information about permissions, you can read from the link below:
|
||||||
<https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs>
|
<https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue