Skip to content

Commit

Permalink
chore: add write permissions to release-bot workflow (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo authored Jan 23, 2025
1 parent 4d1b3f8 commit 9f52fd3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'main'
- 'release/*'

permissions:
contents: read

jobs:
look_for_release:
outputs:
Expand Down Expand Up @@ -82,6 +85,8 @@ jobs:
run: exit 1

publish-release:
permissions:
contents: write
needs:
- look_for_release
- semver
Expand All @@ -106,6 +111,8 @@ jobs:
prerelease: ${{ needs.look_for_release.outputs.release_type == 'prerelease' }}

create-release-branch:
permissions:
contents: write
needs:
- look_for_release
- publish-release
Expand All @@ -127,6 +134,8 @@ jobs:
sha: '${{ github.sha }}'

create-cherry-pick-branch-to-main:
permissions:
contents: write
needs:
- look_for_release
- publish-release
Expand Down

0 comments on commit 9f52fd3

Please sign in to comment.