Skip to content

chore(ci): switch publish to OIDC + provenance#2

Merged
ob-aion merged 1 commit into
mainfrom
chore/oidc-switch
May 21, 2026
Merged

chore(ci): switch publish to OIDC + provenance#2
ob-aion merged 1 commit into
mainfrom
chore/oidc-switch

Conversation

@ob-aion

@ob-aion ob-aion commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 1.0.0 shipped via the token-bootstrap path because npm has no pre-publish Trusted Publisher form for a not-yet-existing scoped package.
  • Trusted Publisher (coroboros/pdf-cleaner → workflow ci.yml, environment empty) is now configured on npm, and both bootstrap secrets (NPM_PACKAGE_REGISTRY_TOKEN, NPM_EXTRA_CONFIG) have been deleted from the repo.
  • Drop both lines from the reusable-workflow secrets: block. javascript-npm-packages.yml@v0 declares both as required: false, so they pass through as empty and the publish step takes the OIDC + --provenance branch from 1.0.1 onward.
  • ci.yml now byte-matches the canonical OIDC shape used by @coroboros/clone.

Test plan

  • PR CI green (preflight, gitleaks, dependency-review, osv-scanner; publish skipped on PR).
  • After merge, tag 1.0.1 and confirm the publish job takes the OIDC branch and npm view @coroboros/pdf-cleaner --json | grep dist.attestations shows a provenance attestation.

`1.0.0` shipped via the token-bootstrap path because npm has no
pre-publish Trusted Publisher form for a not-yet-existing scoped
package. The Trusted Publisher (`coroboros/pdf-cleaner` →
workflow `ci.yml`, environment empty) is now configured on npm,
and the two bootstrap secrets (`NPM_PACKAGE_REGISTRY_TOKEN` and
`NPM_EXTRA_CONFIG`) have been deleted from the repo.

Drop both lines from the reusable-workflow `secrets:` block.
`javascript-npm-packages.yml@v0` declares both as `required:
false`, so they pass through as empty and the publish step takes
the OIDC + `--provenance` branch from `1.0.1` onward.

`ci.yml` now byte-matches the canonical OIDC shape used by
`@coroboros/clone`.
@ob-aion ob-aion merged commit 2b016db into main May 21, 2026
5 checks passed
@ob-aion ob-aion deleted the chore/oidc-switch branch May 21, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant