Skip to content

Commit

Permalink
Fix permissions for release.yaml (#7220) (#7221)
Browse files Browse the repository at this point in the history
* Fix permissions for release.yaml

- 0.15.0 release currently borked

* Move permissions to individual job targets

(cherry picked from commit 3eae509)

Co-authored-by: Oliver <[email protected]>
  • Loading branch information
github-actions[bot] and SchrodingersGat authored May 14, 2024
1 parent 2dac705 commit 7df92aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -30,6 +30,9 @@ jobs:

publish-build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # [email protected]
- name: Environment Setup
Expand Down

0 comments on commit 7df92aa

Please sign in to comment.