Skip to content

Support npm granular token metadata - #10

Merged
patcGM merged 1 commit into
mainfrom
fix/npm-granular-tokens
Oct 22, 2026
Merged

patcGM merged 1 commit into
mainfrom
fix/npm-granular-tokens

Conversation

@patcGM

@patcGM patcGM commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Fix

  • normalize npm CLI 11.18.0 granular token metadata into the existing secret-free credential shape
  • derive readonly from package permissions and automation from the granular bypass_2fa flag
  • continue discarding full token values, partial keys, scopes, and raw permission payloads
  • preserve legacy token-list compatibility

Live evidence

  • reproduced against a real seven-day granular token on the disposable test2gm account
  • normalized live output contains only ID, name, timestamps, booleans, and CIDR metadata

Verification

  • 102 tests; 76% branch coverage
  • Ruff and formatting pass
  • actionlint passes
  • Bandit has no findings
  • pip-audit reports no known vulnerabilities

The provider drill remains blocked until this fix is reviewed, merged, and main CI succeeds on the resulting exact SHA.

@patcGM
patcGM requested a review from test2GM as a code owner October 22, 2026 11:36
@patcGM
patcGM merged commit 7cbe515 into main Oct 22, 2026
9 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.

2 participants