Skip to content

chore(workflow): finish trusted issue-policy migration after bootstrap #7

Closed

Description

@abruption

Dependency

Blocked until bootstrap PR #4 is reviewed and merged by the owner or with explicit merge approval.

Purpose

Complete the second phase of Issue #3 without removing or bypassing protection during bootstrap.

Sequence

  1. After fix(workflow): bootstrap trusted issue validation without blocking migration #4 reaches main, observe a successful Trusted Issue-first PR run on a subsequent PR from the base revision. Verify rejection cases and read-only/no-PR-code boundary.
  2. Add the distinct trusted status to the required checks while retaining verify; confirm protection is active and no bypass actors are added.
  3. Prepare a separate Draft PR to remove the legacy pull_request workflow and update migration tests. The owner marks Ready, Codex reviews, and a human or explicitly approved agent merges.
  4. Before removing the legacy workflow, retire its legacy required status only after the trusted check is active and passing. Never disable PR protection or substitute a fabricated status.

Current limitation

Bootstrap PR #4 deliberately retains the legacy validation. The security migration is incomplete until the trusted required check is active and the legacy workflow is retired.

Activity

  1. abruption commented on Nov 15, 2026

    @abruption
    OwnerAuthor

    Owner-authorized migration started. Added Trusted Issue-first PR (GitHub Actions integration 15368) to the active main ruleset alongside verify and the legacy Issue-first PR. Strict checks, PR/thread-resolution rules, force-push/deletion protection, and empty bypass actors were preserved. Effective branch rules were re-read after the update.

    The main CI run 43604130139 was genuinely rerun (attempt 2). No synthetic success status was created. Historical merged-PR metadata jobs were not rerun because their linked issues are now closed. The new Draft PR will provide a real pull_request_target event using the base workflow.

    Legacy context removal is gated on successful actual Trusted Issue-first PR and verify jobs for the new Draft PR current head. Legacy workflow removal is being prepared only on a work branch, with independent CLI review before push/PR. Ready conversion and merge remain owner-controlled.

  2. abruption commented on Nov 15, 2026

    @abruption
    OwnerAuthor

    Owner-authorized ruleset transition completed after validating this Draft PR head cafaa79:

    • Trusted check: run 43686546742, event pull_request_target, path .github/workflows/trusted-pr-policy.yml, current PR head, GitHub Actions app 15368, success. The run/check-suite mapping matched and exactly one check had this name.
    • Verify: run 43686546335, event pull_request, CI workflow, current PR head, app 15368, success; all four Node24/26 macOS/Ubuntu jobs passed typecheck/build/tests/package smoke.
    • Main CI rerun 43604130139 attempt 2 also completed successfully. No manually generated success statuses.
    • Removed only legacy Issue-first PR from required contexts. Effective main rules now require verify + Trusted Issue-first PR (both app 15368), with strict checks. All other protection rules are identical to the pre-transition snapshot: active main ruleset, PR/thread-resolution requirements, force-push/deletion restrictions, empty bypass actors, current-user bypass never.
    • Classic branch-protection API still returns 404; branch/rules APIs confirm active ruleset protection.

    Source workflow deletion is only in this Draft PR; main still retains the legacy file until normal review and merge. No Ready conversion, merge, npm publication, or Worker deployment was performed. Observe the updated base workflow on the next legitimate PR after merge; pre-merge trusted success executes the existing base workflow, not this PR's updated copy.

  3. abruption commented on Nov 16, 2026

    @abruption
    OwnerAuthor

    Post-merge observation on a legitimate maintenance PR: PR #37 is based on main ae48fd3 (the #34 merge). Trusted policy run 43779667616 completed successfully with event pull_request_target, path .github/workflows/trusted-pr-policy.yml, PR head 9d11899. Job logs show read-only Contents/Issues/PullRequests token permissions, PR_NUMBER 37, and Issue-first PR policy passed. The setup-node input no longer contains package-manager-cache and the previous unsupported-input warning is absent. No legacy workflow or legacy check is present. This is the planned post-merge observation, not an adversarial test PR or fabricated status. Exact GITHUB_WORKFLOW_SHA remains un-emitted; the base SHA is the PR API observation, not the run head SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions