[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
Closed
[compiler-threat-spec] Add CTR-027: pre-created PR branch confusion to threat detection spec#55579github-actions[bot] wants to merge 3 commits into
github-actions[bot] wants to merge 3 commits into
Conversation
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>
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.
Daily Compiler Threat Spec Optimizer — 2026-08-25
View Details
Threats reviewed: All compiler/parser/
actions/setup/jschanges merged since the1.0.26audit (last ~2 days), including #55532, #55529, #55481, #55496, #55482, #55480, #55518, #55522, and the[test-parallel]/[dead-code]batches.Covered → added to spec:
validate-pre-created-pull-requestactivation-job step that re-derives the expected pre-created branch ref (<branch-prefix><run_id>-<run_attempt>) and rejects any mismatch before privilegedagent/safe-outputscheckout, validates the PR number format, and confirms via the GitHub API thathead.repo/base.repomatch the trusted current repository — closing a branch-confusion/cross-fork redirection gap. Also covers the new static/valid-git-ref-prefix validation forbranch-prefix.T-CTR-042pkg/workflow/compiler_precreate_pull_request.go,pkg/workflow/create_pull_request.go,actions/setup/js/validate_pre_created_pull_request.cjspkg/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.cjsNo implementation required — reviewed and confirmed out of scope or already covered by existing rules:
threat-detectinvocation #55532 (threat-detect kill-switch flagsengine-timeout/max-turns/retries) — operational governance for detector tooling, not a security boundary; ordinary schema validation already rejects invalid values.issues: writederivation fix) — correctness fix within existing CTR-001 permissions scope.[test-parallel]/[dead-code]batches — test-only / dead-code removal.Rule IDs added:
CTR-027(new), test IDT-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 bumped1.0.26→1.0.27).Tests run: None (documentation-only spec update; no compiler/parser source changed).
Suppression review: No
threat-detection-suppressannotations found in live workflow sources this cycle — noSLA_BREACHor expiration findings.