Skip to content

Commit f515459

Browse files
committed
fix(ci): grant contents write to the release workflow
The release job creates the tag and the GitHub release, which needs contents: write. The workflow got contents: read in #261, so the 1.46.0 release failed with 403 after the package was already published.
1 parent 327d119 commit f515459

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- main
88

99
permissions:
10-
contents: read
10+
# write is needed to create the tag and the GitHub release
11+
contents: write
1112
pull-requests: read
1213

1314
jobs:

0 commit comments

Comments
 (0)