Skip to content

Say where the base-branch guard's workflow file comes from - #748

Merged
rocklambros merged 2 commits into
integrationfrom
ci/guard-comment-default-branch
Dec 3, 2026
Merged

rocklambros merged 2 commits into
integrationfrom
ci/guard-comment-default-branch

Conversation

@rocklambros

Copy link
Copy Markdown
Collaborator

What changed

The comment at the top of .github/workflows/pr-base-guard.yml said pull_request_target runs the workflow and the guard "as they stand on main". The first promotion after PR #464 (PR #746) showed the workflow file comes from integration, the default branch, while the job still checks out the guard script from main. The comment now says both, and that a change to this file merged into integration changes how pull requests into main are judged, under code-owner review on /.github/. No behavior changes.

Which issue does this implement

Refs #463

Base branch

  • integration. Every pull request targets integration, documentation included.
    Only a promotion targets main (see CONTRIBUTING.md)

Type of change

  • Tooling or CI

I tested this

  • uv run pytest tests/test_base_branch_guard.py passes (43). actionlint is clean.

Checklist

  • Commits are signed off with git commit -s (required by the DCO)
  • No secrets, tokens, or internal URLs in the diff

Security

  • This change has no security impact

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>
…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>
@rocklambros rocklambros mentioned this pull request Dec 3, 2026
11 of 18 tasks
@rocklambros
rocklambros merged commit e16a209 into integration Dec 3, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Done in ACS Project Tracker Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant