Stop advisory release-notes reminders from failing fork and Dependabot PRs - #1423
Merged
Paul Lizer (paullizer) merged 1 commit intoSep 4, 2026
Merged
Conversation
The check-release-notes job posts advisory reminder comments via actions/github-script. Pull requests from forks and from Dependabot run with a read-only GITHUB_TOKEN, so creating a comment raises "Resource not accessible by integration" and failed the entire job. The reminder is explicitly advisory - the "Validate release notes update" step always exits 0 - so a 403 there should never turn the check red. Mark both comment steps continue-on-error and add a regression test that keeps the real validation step blocking. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
check-release-notescurrently fails on every pull request opened from a fork or by Dependabot, even when release notes are present and correct.The job ends with:
Root cause
release-notes-check.ymlhas two advisory steps that post a reminder comment usingactions/github-script:Post PR comment (when notes needed but missing)Post PR comment (when latest features likely needed but missing)Pull requests from forks and from Dependabot run with a read-only
GITHUB_TOKEN(Contents: read, Metadata: read, Packages: read), soissues.createCommentreturns 403 and the step — and therefore the whole job — fails.This contradicts the workflow's own design. The
Validate release notes updatestep deliberatelyexit 0s, with the comment:and the second reminder even describes itself as "an automated, non-blocking reminder". A 403 while posting an advisory comment should never turn the check red.
Observed impact
Xeelee33/simplechat) — release notes were updated and two fix docs added, but the check still reported FAILURE. It failed on the Latest Features reminder step, becausesupport_menu_config.pywasn't touched.zarg-dev/simplechat) — will hit the same thing.The red check is pure noise, and it trains reviewers to ignore a check that is supposed to be meaningful.
What changed
continue-on-error: true, with a comment explaining the read-only-token behavior.functional_tests/test_release_notes_check_fork_permissions.py, which asserts the two comment steps are non-blocking and thatValidate release notes updatestays blocking, so the check keeps its value.Behavior on same-repo pull requests is unchanged: the token has write access there, the reminder comment still posts.
Validation
python functional_tests/test_release_notes_check_fork_permissions.py— 2/2 passed.yaml.safe_load; all 8 steps intact,continue-on-errorset on exactly the two comment steps.Version bump
Not applicable — this is a CI workflow change with no
application/changes, matching the precedent set by #1338 (github-actions bumps across 12 workflow files, noconfig.pybump).Note on required checks
check-release-notesis not a required status check in any ruleset — theMainruleset requires onlyenforce-branch-flow— so this was never a hard block, just a persistently misleading signal.