fix(ci): gate the release notes backfill behind reviewer approval - #37142
fix(ci): gate the release notes backfill behind reviewer approval#37142sfreudenthaler wants to merge 1 commit into
Conversation
|
Claude finished @sfreudenthaler's task in 57s —— View job Review: gate release notes backfill behind reviewer approval
The gate wiring is correct. New Issues
Nothing else in the diff is problematic — the gate does what the PR describes. |
The phase's final step is `gh release edit --notes-file`, an unconditional replace on a public release body -- it overwrites hand edits and cannot be undone from the workflow. workflow_dispatch is open to every account with write access on this repo (45 today), so this has been an unreviewed write path to public release documentation since March. Adds a no-op approval gate on the release-notes-backfill environment (required_reviewers: dotDevelopers), matching the changelog-site-publish gate and cicd_evergreen-tracks-promote.yml's apply gate. Closes: #37139 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EbgDBJuoBrpJxh5qLMPorL
54f9104 to
b6035cd
Compare
|
No code changes needed here — the review found no issues, and its one note was a verification request rather than a defect. Confirming it: the So the gate is real, not pending setup. Two points from the review worth keeping on the record:
|
Closes: #37139
Top of stack #37143. Based on #37141.
Problem
cicd_ai-release-notes-backfill.ymlends in an unconditional replace on a public release body:It overwrites hand edits and cannot be undone from the workflow.
workflow_dispatchis limited to accounts with write access — never forks, never anonymous users — but that is 45 accounts on this repo. Since this workflow shipped in March 2026 it has been an unreviewed write path to public release documentation, for any release tag, by any of those accounts.Fix
A no-op approval gate on the
release-notes-backfillenvironment (required_reviewers: dotDevelopers), with the generate jobneeds: gate. Same pattern ascicd_evergreen-tracks-promote.yml's apply gate and thechangelog-site-publishgate in #37141.The environment has been created with that rule. If it is ever removed, GitHub auto-creates a missing environment unprotected on first use, silently removing the gate — it fails open, not closed. The workflow comment says so at the gate.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EbgDBJuoBrpJxh5qLMPorL