Fix permissions for release.yaml (#7220)

* Fix permissions for release.yaml

- 0.15.0 release currently borked

* Move permissions to individual job targets
This commit is contained in:
Oliver 2024-05-14 22:04:03 +10:00 committed by GitHub
parent 5c0cd23bed
commit 3eae5096e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,12 +5,12 @@ on:
release:
types: [published]
permissions:
contents: read
jobs:
stable:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
@ -30,6 +30,9 @@ jobs:
publish-build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # pin@v4.1.5
- name: Environment Setup