mirror of
https://github.com/actions/checkout.git
synced 2024-11-27 03:13:49 +01:00
docs(readme): add permissions in push example
A reminder about the required privilege to push would benefit the example of pushing with the built-in token IMHO.
This commit is contained in:
parent
b80ff79f17
commit
fad8fd9f21
1 changed files with 3 additions and 0 deletions
|
@ -272,6 +272,9 @@ jobs:
|
|||
|
||||
```yaml
|
||||
on: push
|
||||
# `contents:write` permission must be granted to the built-in token, see https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
||||
permissions:
|
||||
contents: write #Require
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue