fix(workflows): ignore outsiders' pull requests in shared release automation #811
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #811"
general
weight: 0.35
Danathar
Summary: Shared release and package-update automations used to look for their official proposal by branch name alone, which meant an outsider could open a proposal from their own copy of a project with the same name and trick the automation into editing or queuing it instead of the real one. This change makes those automations ignore proposals coming from outside copies, so only the project's own release and package-update proposals are updated or queued. This resolves the security finding about release automation mistaking an outsider's proposal for the official one (#810).
What I need from you: Review and approve.
---
What does this change?
Closes #810
Filters cross-repository (fork) pull requests out of all three head-branch PR lookups identified in #810:
.github/workflows/reusable-promote-squash.yml("Upsert promotion PR"): requestisCrossRepositoryin--json number,isCrossRepositoryand filter with--jq '[.[] | select(.isCrossRepository | not)][0].number // empty'..github/workflows/reusable-promote-squash.yml("Rebuild squash promotion branch", queue-entry guard): widen GraphQLpullRequests(...)fromfirst: 1tofirst: 20, requestisCrossRepositoryinnodes, and filter with--jq '[.data.repository.pullRequests.nodes[] | select(.isCrossRepository | not)][0] // empty'..github/workflows/reusable-pkg-cadence.yml("Commit cadence files and open a PR"): requestisCrossRepositoryin--json number,isCrossRepositoryand filter with-q '[.[] | select(.isCrossRepository | not)][0].number // empty'..github/zizmor.yml: advance thesecrets-inheritbaseline pin onreusable-promote-squash.ymlfrom line 545 to 546 to match the added GraphQL field line.docs/skills/factory-operations.md: update the queue-entry guard snippet and document theisCrossRepositoryfilter rule for head-branch PR lookups.tests/bats/test_pr_lookup_fork_filter.bats: add bats regression tests that run the real workflow step scripts against a field-projectingghmock and fail if any of the three lookups dropsisCrossRepository,select(.isCrossRepository | not), orfirst: 20.Verification
bats --print-output-on-failure tests/bats/test_pr_lookup_fork_filter.bats— 6 passed, 0 failedbats --print-output-on-failure tests/bats/test_promote_squash_queue_guard.bats tests/bats/test_promote_squash_tree_diff.bats— 12 passed, 0 failed--jsonfield, queue-guard jq filter, queue-guard GraphQL field, queue-guardfirst: 20->first: 1, cadence jq filter, cadence--jsonfield) causedtest_pr_lookup_fork_filter.batsto fail in all 7/7 casespython3 -m pytest tests/ --ignore=tests/bats -q— 1343 passed (includingtest_zizmor_baseline_pins.py,test_promote_gate_order.py,test_pkg_cadence_intervals.py, andtest_skill_spec_conformance.py)node --test tests/node/.test.mjs— 11 passedpython3 scripts/check-consumer-contract.py --verbose— 23 required inputs verifiedpython3 scripts/check-self-repository-references.py— passedConsumer validation
Required for consumer-facing composites and reusable workflows. Production uses managed
@v1; a reviewed first-party candidate source is permitted only in the read-only onboarding preview.Consumer PR: https://github.com/projectbluefin/common/pull/1774
Consumer CI run: https://github.com/projectbluefin/common/actions/runs/46503675795
Out-of-org consumer impact: Safe —
ublue-os/auroraandublue-os/bazziteare unaffected because no inputs, outputs, or Justfile contracts change; callers usingreusable-promote-squash.ymlorreusable-pkg-cadence.ymlonly ignore cross-repository fork PRs when matching same-repo automation branches.@v1production references (read-only candidate preview only when bootstrapping)build_required=falseand skipped everyprojectbluefin/actionsstep, and the changed reusable workflows are not PR-triggered in consumers)ublue-os/aurora,ublue-os/bazzite) and documented the impact aboveConsumer note:
projectbluefin/bluefinis archived (read-only), soprojectbluefin/common#1774is an empty-commit validation PR (/hold, not for merge) that produced green first-party consumer Actions runs (Build#46503675795and Unit Tests#46503675930)..github/workflows/build.ymlinprojectbluefin/commonuses SHA-pinnedprojectbluefin/actions/bootc-build/composite actions (@4f9610973b53c5318e5ea35d089aa11afb70c744 # v1), and neither Build nor Unit Tests calls a reusable workflow, so these runs do not exercise the moving@v1tag or execute thereusable-promote-squash.yml/reusable-pkg-cadence.ymlsteps changed in this PR (neither workflow is PR-triggered in consumers). Because the commit is empty, Build setbuild_required=falseand skipped everyprojectbluefin/actionsstep, so the run executed noprojectbluefin/actionscode. The behavioral change is verified bytests/bats/test_pr_lookup_fork_filter.batsand the existingreusable-promote-squashbats tests in this repo. Closeprojectbluefin/common#1774once this PR lands.Checklist
feat:,fix:,chore:, etc.)-- hive: backend=agy
---
🐝 Hive Agent:
contributor| SHA:2ec4773