Commit b749d52
ci(release): add pull-requests permission to release job (#5472)
The release job uses a nested reusable workflow (release-shared.yml)
that calls propose-release-notes.yml, which requires `pull-requests:
write` permission to create pull requests. For nested reusable
workflows, a called job's permissions cannot exceed those granted to the
calling job, so this permission must be declared at the release job
level even though the propose job uses an App token for its actual PR
creation.
**Changes:**
- Added `pull-requests: write` permission to the release job in
`.github/workflows/release.yml`
- Added explanatory comments documenting why this permission is required
for nested reusable workflows
https://claude.ai/code/session_017eKVgHfYw2vb26wX4xh61q
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0ceea0b commit b749d52
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
0 commit comments