docs(readme): add action token permissions

This automatically sets the correct permissions in the workflow definition so that the user doesn't have to change the default workflow permissions in the repo settings.
This commit is contained in:
Luca Steeb 2025-01-18 13:02:14 +04:00 committed by GitHub
parent c5294a65e6
commit d912fe8085
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,6 +205,8 @@ on: [ "push" ]
jobs: jobs:
build: build:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
permissions:
issues: write
steps: steps:
- uses: "actions/checkout@v4" - uses: "actions/checkout@v4"
- name: "TODO to Issue" - name: "TODO to Issue"
@ -228,6 +230,10 @@ on: [ "push" ]
jobs: jobs:
build: build:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
permissions:
contents: write
issues: write
pull-requests: write
steps: steps:
- uses: "actions/checkout@v4" - uses: "actions/checkout@v4"
- name: "TODO to Issue" - name: "TODO to Issue"