Skip to content

[compiler-threat-spec] Add CTR-027: pre-created PR branch confusion to threat detection spec - #55579

Closed
github-actions[bot] wants to merge 3 commits into
mainfrom
gh-aw/pre-created/32802476798-1
Closed

[compiler-threat-spec] Add CTR-027: pre-created PR branch confusion to threat detection spec#55579
github-actions[bot] wants to merge 3 commits into
mainfrom
gh-aw/pre-created/32802476798-1

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Daily Compiler Threat Spec Optimizer — 2026-08-25

View Details

Threats reviewed: All compiler/parser/actions/setup/js changes merged since the 1.0.26 audit (last ~2 days), including #55532, #55529, #55481, #55496, #55482, #55480, #55518, #55522, and the [test-parallel]/[dead-code] batches.

Covered → added to spec:

  • CTR-027 Pre-Created Pull Request Branch Confusion (new rule, was implemented-but-undocumented): Validate pre-created PR branch before privileged checkout #55481 added a validate-pre-created-pull-request activation-job step that re-derives the expected pre-created branch ref (<branch-prefix><run_id>-<run_attempt>) and rejects any mismatch before privileged agent/safe-outputs checkout, validates the PR number format, and confirms via the GitHub API that head.repo/base.repo match the trusted current repository — closing a branch-confusion/cross-fork redirection gap. Also covers the new static/valid-git-ref-prefix validation for branch-prefix.
    • Test ID: T-CTR-042
    • Implementation: pkg/workflow/compiler_precreate_pull_request.go, pkg/workflow/create_pull_request.go, actions/setup/js/validate_pre_created_pull_request.cjs
    • Tests: pkg/workflow/compiler_precreate_pull_request_test.go, pkg/workflow/compiler_precreate_pull_request_integration_test.go, actions/setup/js/validate_pre_created_pull_request.test.cjs

No implementation required — reviewed and confirmed out of scope or already covered by existing rules:

Rule IDs added: CTR-027 (new), test ID T-CTR-042.

Files changed: specs/compiler-threat-detection-spec.md (Section 2 sync table, Section 5.1 rule catalog, Section 7.1 implementation mapping, Section 8.1 test catalog, Section 10 changelog; version bumped 1.0.261.0.27).

Tests run: None (documentation-only spec update; no compiler/parser source changed).

Suppression review: No threat-detection-suppress annotations found in live workflow sources this cycle — no SLA_BREACH or expiration findings.

Generated by 🔒 Daily Compiler Threat Spec Optimizer · copilot · auto · 100.2 AIC · ⌖ 7.76 AIC · ⊞ 8.3K ·

  • expires on Aug 31, 2026, 6:53 PM UTC-08:00

github-actions Bot and others added 3 commits August 25, 2026 02:43
Documents the already-implemented validate-pre-created-pull-request
activation-job step (#55481) that re-validates the pre-created steer
PR's branch and repository identity before privileged agent/safe-outputs
checkout, and the branch-prefix static/valid-git-ref-prefix validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot changed the title [WIP] [compiler-threat-spec] Daily Compiler Threat Spec Optimizer: work in progress [compiler-threat-spec] Add CTR-027: pre-created PR branch confusion to threat detection spec Aug 25, 2026
@github-actions
github-actions Bot marked this pull request as ready for review August 25, 2026 02:53
@pelikhan pelikhan closed this Aug 25, 2026
@github-actions github-actions Bot added the closed:unknown PR was closed without merging: unknown label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant