Skip to content

Fix release notes check for fork pull requests - #20091

Draft
abonie wants to merge 1 commit into
dotnet:mainfrom
abonie:release_notes_rework
Draft

Fix release notes check for fork pull requests#20091
abonie wants to merge 1 commit into
dotnet:mainfrom
abonie:release_notes_rework

Conversation

@abonie

@abonie abonie commented Jul 28, 2026

Copy link
Copy Markdown
Member

check_release_notes runs on pull_request_target and used actions/checkout to pull the PR's head ref. Now that checkout refuses fork checkouts under pull_request_target, every fork PR failed the check.

It no longer checks out fork code: the files it needs are fetched through the GitHub Contents API and only ever grepped, so the check works for fork PRs without putting untrusted code in a job that holds the base repo's token. NO_RELEASE_NOTES now short-circuits before anything is fetched.

check_release_notes runs on pull_request_target and used actions/checkout to pull the PR's head ref. Now that checkout refuses fork checkouts under pull_request_target, every fork PR failed the check.

It no longer checks out fork code: the files it needs are fetched through the GitHub Contents API and only ever grepped, so the check works for fork PRs without putting untrusted code in a job that holds the base repo's token. NO_RELEASE_NOTES now short-circuits before anything is fetched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ee911491-8b95-4ae6-9155-d476c5a83f67
@abonie
abonie requested a review from a team as a code owner July 28, 2026 17:41
@abonie abonie added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Jul 28, 2026
@abonie
abonie requested a review from T-Gro July 28, 2026 17:43
@github-actions github-actions Bot added the ⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure label Jul 28, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Build-Infra
Affects-Build-Infra: modifies .github/workflows/check_release_notes.yml

Generated by PR Tooling Safety Check · opus46 12.1M ·

@abonie
abonie marked this pull request as draft July 29, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Build-Infra Tooling check: PR touches build infrastructure NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant