Skip to content

Commit cedd629

Browse files
committed
Fix GitHub release creation token parameter
- Change from env.GITHUB_TOKEN to token parameter (correct for action-gh-release) - Add pull-requests: read permission - Update permissions comment for clarity
1 parent 7c70925 commit cedd629

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
permissions:
15-
contents: write # Required to create releases
15+
contents: write # Required to create releases and push tags
1616
id-token: write # Required for OIDC if using
17+
pull-requests: read # May be needed for some operations
1718

1819
steps:
1920
- name: Checkout code
@@ -157,6 +158,5 @@ jobs:
157158
**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.event.before }}...${{ github.ref }}
158159
draft: false
159160
prerelease: false
160-
env:
161-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161+
token: ${{ secrets.GITHUB_TOKEN }}
162162

0 commit comments

Comments
 (0)