Skip to content

docs(release-secrets): document sqlrite-notes trusted publisher + Repository-field gotcha (SQLR-13)#157

Merged
joaoh82 merged 1 commit into
mainfrom
sqlr-13-docs-trusted-publisher
Jun 1, 2026
Merged

docs(release-secrets): document sqlrite-notes trusted publisher + Repository-field gotcha (SQLR-13)#157
joaoh82 merged 1 commit into
mainfrom
sqlr-13-docs-trusted-publisher

Conversation

@joaoh82
Copy link
Copy Markdown
Owner

@joaoh82 joaoh82 commented Jun 1, 2026

What

Closes the documentation half of SQLR-13 (npm trusted publisher for the sqlrite-notes example).

The trusted publisher itself is now configured and working — sqlrite-notes@0.11.0 shipped via OIDC after the fix. This PR records what was wrong and how to avoid it, so the next person setting up an npm trusted publisher doesn't re-debug it.

Why

The sqlrite-notes trusted-publisher Repository field had been set to the package's npmjs access-page URL (https://www.npmjs.com/package/sqlrite-notes/access) instead of the bare repo name rust_sqlite. The OIDC subject claim the workflow sends is repo:joaoh82/rust_sqlite:environment:release, so it never matched the record, and every publish-notes-example run failed with the misleading OIDC token exchange error - package not found.

It stayed hidden because the release wave always died earlier and never reached the notes job — it only surfaced once #156 made the release idempotent and a re-dispatch finally attempted the first-ever sqlrite-notes publish.

Changes (docs/release-secrets.md)

  • §3c — mark the sqlrite-notes trusted publisher resolved (first shipped at 0.11.0) + add a gotcha callout: set Repository to exactly rust_sqlite, no owner prefix, no URL.
  • §3b — strengthen the canonical Repository-field note to warn against pasting a URL, not just the owner-prefixed form, pointing readers at §3c.

Docs-only; no code or workflow changes.

🤖 Generated with Claude Code

…ository-field gotcha (SQLR-13)

The sqlrite-notes npm trusted publisher had its Repository field set to
the package's npmjs access-page URL instead of the bare repo name, so the
OIDC subject claim (repo:joaoh82/rust_sqlite:environment:release) never
matched the record and every publish-notes-example run failed with "OIDC
token exchange error - package not found". It only surfaced once #156
made the release idempotent and a re-dispatch finally attempted the
first-ever sqlrite-notes publish.

- §3c: mark the trusted publisher resolved (first shipped at 0.11.0) and
  add a gotcha callout — set Repository to exactly `rust_sqlite`, no
  owner prefix, no URL.
- §3b: strengthen the canonical Repository-field note to warn against
  pasting a URL (not just the owner-prefixed form), pointing at §3c.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rust-sqlite Ready Ready Preview, Comment Jun 1, 2026 8:38pm

Request Review

@joaoh82 joaoh82 merged commit d508336 into main Jun 1, 2026
20 checks passed
@joaoh82 joaoh82 mentioned this pull request Jun 2, 2026
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