Skip to content

[P2] Separate release build/test execution from OIDC publishing permission #99

Closed

Description

@abruption

Priority: P2. Defense in depth follow-up; no observed compromise or unauthorized publication.

Evidence is a static review of v0.4.3 at commit 543b661f64f65f65154e3322847be1756deb778e. The publish job grants id-token: write before installing the development toolchain and running checks, tests, packaging, and publication. The package scripts also define build and publish lifecycle hooks. These steps therefore execute within the same job permission boundary as the Trusted Publisher operation.

The concern is the breadth of code executing with permission to request an OIDC token. A compromised dependency or execution step could use that permission in the trusted workflow context. This is a threat model and a hardening opportunity, not evidence that a dependency is compromised or that existing provenance is invalid. The review did not run a publication experiment, request an OIDC token, or validate provenance for a separately packed artifact.

Evaluate building, testing, and packing in a job without id-token: write, followed by a minimal publishing job that receives the verified tarball. Establish compatibility before changing the working release pipeline: publishing a transferred tarball must retain the intended OIDC publisher identity, source repository/ref/commit association, and artifact digest in npm provenance. Artifact transfer alone is not sufficient evidence of that binding. Preserve the runtime-only shrinkwrap and exact runtime dependency constraints.

Acceptance criteria:

  • Document and verify the tarball publication/provenance behavior with the supported npm version, including publisher identity, source association, and digest correspondence. Use a bounded authorized verification path; do not publish an unintended production release.
  • Confirm the build/test/pack job cannot request OIDC tokens, and the publish job executes only the minimum verified publication steps.
  • Verify the packed artifact and shrinkwrap before transfer and verify its digest before publishing.
  • Retain Release Please ownership of release metadata and the current Trusted Publisher binding. Do not introduce npm tokens, NODE_AUTH_TOKEN, or token-based fallback.
  • Run the repository's required runtime/packaging/automation checks for any implementation change.

Related closed work: #45 and #27. This follows the existing supply-chain work rather than reopening its completed migration.

Activity

  1. added
    enhancement
    on Oct 7, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions