Repository navigation
[2.1] ci: restore PR workflow hardening - #37470
Conversation
Apply the current main rollout to the current 2.1 release line. Preserve release versions and PR owner team membership while removing the retired label gate.
Code Review ✅ Approved🔴 High risk · Reworks PR workflows to execute contributor code under new secret and write gates; a gating error could expose repository credentials or enable unintended PR writes. Backports the PR workflow hardening from #35426 onto the 2.1 release branch, replacing VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Replacement for the closed, unmerged #36403. Backports #35426 onto the current
2.1release branch. Merge this before #35426, together with #35433 (2.0) and #35435 (1.13). No linked issue: the same CI hardening change, labelledskip-pr-checks.Workflows that execute PR code use
pull_request. The retired label gates and unsafe-checkout opt-ins are removed. Secret-backed steps and PR writes remain limited to same-repository, non-Dependabot PRs. Forks receive job summaries and annotations; deferred Collate work runs in merge groups.The backport preserves current release versions, target-branch Python workflow context, and the team membership needed by PR Auto Assign.
Type of change:
High-level design:
Applies the CI and documentation changes from main PR head
a2ef71d9656to2.1base0dc8e8e09db. Follows the includedADR:2026-10-14-pr-code-never-runs-on-pull-request-target.The old backport branch has diverged from the current release line. This replacement contains only 30 CI/documentation paths and leaves product and release-version files untouched. Team membership stays in
.github/teams.yml; only its retired label allowlist is removed.Latest-push approval is enabled in
merge-rules. Keep that rule enabled when #35426 lands. Until then, old default-branch target workflows can overlap the new PR workflows.Tests:
Use cases covered
Unit tests
python -m pytest .github/scripts/tests/test_playwright_secret_redaction.py -q --tb=short: 7 passed.Backend integration tests
Not applicable: no Java, schema, migration, or backend API changes.
Ingestion integration tests
Not applicable: no ingestion implementation changes.
Playwright (UI) tests
Not run: no UI implementation changes. Full GitHub and merge-group CI remain pending.
Manual testing performed
2.1: 74 findings before and after, zero new findings after normalizing shifted script line numbers.node --check .github/scripts/render_playwright_summary.cjs, the decision-record checker,git diff --check, and commit hooks passed.UI screen recording:
Not applicable: CI configuration only.
Checklist:
REVIEW.mdatebf90d18392: no blocking findings.skip-pr-checkslike the existing backports.