Skip to content

ci(policy): explicitly allow the trusted metadata workflow event #38

Closed

Description

@abruption

Problem

Trusted Issue-first PR is required on main and uses pull_request_target. GitHub defaults currently evaluate this event as Would block; the repository Actions policies list is empty. GitHub schedules a brownout for November 16, 2026 16:00-18:00 UTC (November 17 01:00-03:00 KST), then default enforcement on December 2.

Scope

Prepare a reviewable repository Actions event-policy declaration targeting only .github/workflows/trusted-pr-policy.yml, allowing only pull_request_target. Include administrator application, read-back/Insights verification and rollback instructions. Keep required checks, branch/ruleset protection, review rules, token permissions and workflow code unchanged. Do not broadly enable the event or add privileged automation.

Acceptance

  • A concrete active policy payload with an exact workflow path, no wildcard/all-workflow scope, and only the required event.
  • Offline policy/workflow contract checks and independent CLI review before a Draft PR.
  • Distinguish source approval from actual GitHub settings application. No live policy mutation or Actions rerun is part of preparing this PR.
  • Administrator verifies effective policy, existing protection, and a real subsequent trusted run after applying; historical evaluate records are not proof of a new policy failure.

References: https://github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/ ; https://docs.github.com/en/rest/actions/policies ; https://docs.github.com/en/actions/how-tos/administer/control-workflow-execution

Activity

  1. abruption commented on Nov 16, 2026

    @abruption
    OwnerAuthor

    Prepared Draft PR #40 at b6ea84b. It contains the exact-workflow/sole-event policy JSON, administrator approval/application/read-back/rollback runbook, and an offline security-boundary test. Actual GitHub policy settings are not applied; the authenticated API still lists zero policies.

    Validation passed: typecheck, 12 local policy tests, formatting/diff checks, and all macOS/Ubuntu Node24/26 CI jobs including build/tests/package smoke, verify, and the actual trusted policy run. Independent Claude Opus 5.5 and Gemini 4 Argon medium reviews completed on the same frozen final input with no required changes. Initial procedural findings were addressed and re-reviewed; current official default-branch workflow semantics were checked directly rather than adopting an incorrect PR-target-branch assumption.

    Source PR closes #38 only. Operational Issue #39 remains separate for explicit live approval, exact commit/payload-hash confirmation, policy ID/read-back and new-event Insights verification. No Ready transition, merge, settings mutation, manual status/rerun, package publication, or Worker deployment was performed.

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