Skip to content

OIDC trusted publishing + update @malloydata deps to 0.0.396#200

Merged
mtoy-googly-moogly merged 2 commits into
mainfrom
mtoy/cli-oidc-publish
May 21, 2026
Merged

OIDC trusted publishing + update @malloydata deps to 0.0.396#200
mtoy-googly-moogly merged 2 commits into
mainfrom
mtoy/cli-oidc-publish

Conversation

@mtoy-googly-moogly
Copy link
Copy Markdown
Contributor

OIDC trusted publishing

Migrates both publish jobs in npm-publish.yml from the static NPM_TOKEN to GitHub Actions OIDC trusted publishing (matching the main malloydata/malloy repo):

  • id-token: write on publish-next and publish-latest
  • npm upgraded in-job to ≥11.5.1 (OIDC requirement)
  • dropped registry-url (avoids an empty-token .npmrc shadowing OIDC) and removed NODE_AUTH_TOKEN

@malloydata/cli is registered on npmjs.com with malloydata/malloy-cli + npm-publish.yml as its trusted publisher, so both jobs are covered. The publish-latest GitHub App token is unchanged — it's for the git push, not npm auth. OIDC also enables provenance automatically; the package already has a repository field, so no provenance issue.

Dependency bump

npm run malloy-update to pick up the 0.0.396 core release (all 8 @malloydata/* deps).

Verifying

  • The publish-next OIDC path runs automatically on merge (publishes @next).
  • To de-risk first, the publish-latest workflow has a dry_run input that exercises the OIDC path without publishing.

Both publish jobs (publish-next, publish-latest) now authenticate to npm
with GitHub Actions OIDC trusted publishing instead of the static
NPM_TOKEN secret:
- add id-token: write to both jobs
- upgrade the runner npm to >=11.5.1 (OIDC publish requirement)
- drop registry-url from setup-node (avoids an empty-token .npmrc that
  would shadow OIDC) and remove NODE_AUTH_TOKEN

@malloydata/cli is registered on npmjs.com with malloydata/malloy-cli +
npm-publish.yml as its trusted publisher, covering both jobs. The
publish-latest GitHub App token stays; it's used for the git push, not
npm auth.
npm run malloy-update (latest dist-tag) to pick up the 0.0.396 core
release.
@mtoy-googly-moogly mtoy-googly-moogly merged commit 9c08c3f into main May 21, 2026
5 checks passed
@mtoy-googly-moogly mtoy-googly-moogly deleted the mtoy/cli-oidc-publish branch May 21, 2026 20:51
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