Repository navigation
Say where the base-branch guard's workflow file comes from - #748
Merged
Merged
Conversation
pull_request_target reads this file from integration, the default branch, and the job runs the guard script from main. The comment said both came from main. A change to this file merged into integration changes how pull requests into main are judged, and code-owner review on /.github/ covers it. Signed-off-by: Rock Lambros <rock@rockcyber.com>
rocklambros
requested review from
GangGreenTemperTatum,
Lrd0036,
afogel,
artmaro,
bar-capsule,
e2hln,
fewdisc,
mamicidal and
sclintonowasp
as code owners
December 1, 2026 14:37
…eview A full promotion brings integration's copy of tools/base_branch_guard.py to main, and the job runs the script from main, so a promotion changes how pull requests into main are judged too. Code-owner review covers both paths for everyone who can't bypass protect-integration, and repository admins can. The header comment is split into one paragraph per point. Signed-off-by: Rock Lambros <rock@rockcyber.com>
11 of 18 tasks
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.
What changed
The comment at the top of
.github/workflows/pr-base-guard.ymlsaidpull_request_targetruns the workflow and the guard "as they stand on main". The first promotion after PR #464 (PR #746) showed the workflow file comes fromintegration, the default branch, while the job still checks out the guard script frommain. The comment now says both, and that a change to this file merged intointegrationchanges how pull requests intomainare judged, under code-owner review on/.github/. No behavior changes.Which issue does this implement
Refs #463
Base branch
integration. Every pull request targetsintegration, documentation included.Only a promotion targets
main(see CONTRIBUTING.md)Type of change
I tested this
uv run pytest tests/test_base_branch_guard.pypasses (43).actionlintis clean.Checklist
git commit -s(required by the DCO)Security