Skip to content

release: fix the credentials preflight (E403 on npm access list packages) - #116

Merged
akosidencio merged 1 commit into
devfrom
fix/v0.2.1-release-preflight
Nov 30, 2026
Merged

akosidencio merged 1 commit into
devfrom
fix/v0.2.1-release-preflight

Conversation

@akosidencio

Copy link
Copy Markdown
Member

The release dry run's Preflight — publishing credentials job failed on its first-ever run (run 46436331024):

npm identity: akongasidencio
npm error 403 403 Forbidden - GET https://registry.npmjs.org/-/org/akongasidencio/package

The token is valid (npm whoami succeeded, and this token published 0.2.0). The failure is in the check itself. npm access list packages without a scope argument lists the logged-in user's packages, and a granular token isn't allowed to read that endpoint.

The fix: for each of the nine @checkgate packages, read npm access list collaborators @checkgate/<pkg> and require read-write for the token's identity. Since 0.2.0, all nine packages exist, so the "does not exist yet" branch and the org-role probe are gone. A notice remains: a granular token's own package scope can't be verified without publishing.

Tested locally against the registry: all nine packages report read-write for akongasidencio, and an unknown identity is reported as no access. Workflow-only change; publish jobs are untouched.

… user's package list

'npm access list packages' without a scope lists the logged-in user's own
packages (GET /-/org/<user>/package), which a granular token may not read:
the preflight failed with E403 on its first run although the token is
valid (npm whoami succeeded). It now reads each @CheckGate package's
collaborators and requires read-write for the token's identity, for all
nine packages (all exist since 0.2.0).
@akosidencio
akosidencio merged commit eaa1947 into dev Nov 30, 2026
20 of 50 checks passed
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