Skip to content

Commit c600869

Browse files
fix: grant pull-requests write permission in release workflow
@semantic-release/github's success step fetches commits from PRs referenced in release commit messages. Without explicit permissions, the GITHUB_TOKEN lacks pull_requests=read scope, causing 404 errors on PRs from the upstream repo's history. Ticket: DX-916
1 parent b25e01a commit c600869

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
release:
1919
name: Release
2020
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
issues: write
24+
pull-requests: write
2125

2226
steps:
2327
- name: Release

0 commit comments

Comments
 (0)