1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-11-27 22:49:17 +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:
Louis Bompart 2024-06-12 02:44:40 -04:00 committed by GitHub
parent b80ff79f17
commit fad8fd9f21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,6 +272,9 @@ jobs:
```yaml ```yaml
on: push 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: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest