Skip to content

[docs]: bypass-2FA GATs blocked from account level operations starting august 2026 - #2006

Open
shmam wants to merge 10 commits into
mainfrom
docs-bypass-2fa-gat-limits
Open

[docs]: bypass-2FA GATs blocked from account level operations starting august 2026#2006
shmam wants to merge 10 commits into
mainfrom
docs-bypass-2fa-gat-limits

Conversation

@shmam

@shmam shmam commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Starting early August 2026, Granular Access Tokens with Bypass 2FA enabled will no longer be permitted to perform account-identity or account-governance actions. Bypass-2FA tokens remain valid for publishing (for now)

Account-identity actions clarified across the docs:

  • Change email or password
  • Modify or disable 2FA configuration
  • Create, escalate, or manage access tokens
  • Add or remove maintainers / other package-governance changes

Files updated

  • content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx — added an "Account-identity actions require an interactive 2FA challenge" section and refined the Bypass 2FA description.
  • content/integrations/integrating-npm-with-external-services/creating-and-viewing-access-tokens.mdx — clarified the Bypass 2FA checkbox scope during token creation and linked to the new section.
  • content/packages-and-modules/securing-your-code/requiring-2fa-for-package-publishing-and-settings-modification.mdx — narrowed the "bypass 2FA is enabled" bullet to package write actions and added a bullet for account-identity actions.
  • content/getting-started/setting-up-your-npm-user-account/about-two-factor-authentication.mdx — noted in the callout that account-identity actions cannot be performed with a bypass-2FA token.

Notes

  • Wording aligns with the epic's "raise the floor, ease the path" framing and points users toward trusted publishing for CI/CD as a migration path.
  • No changes to nav or redirects were needed.

Reflects the epic to remove account-identity capability from bypass-2FA
Granular Access Tokens. Bypass 2FA still applies to publishing and other
package write actions, but changes to email/password, 2FA configuration,
recovery codes, token creation/escalation, and maintainer management
now always require an interactive 2FA challenge.

Refs github/npm#15355
Epic github/npm#15226

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17ac1732-86bf-4b6f-a698-70850d2b7b27
@shmam
shmam requested review from a team and leobalter as code owners July 17, 2026 17:51
@shmam
shmam temporarily deployed to github-pages July 17, 2026 17:56 — with GitHub Actions Inactive
@shmam shmam changed the title Docs: bypass-2FA GATs cannot perform account-identity actions [docs]: bypass-2FA GATs blocked from account level operations starting august 2026 Jul 17, 2026
@shmam
shmam temporarily deployed to github-pages July 17, 2026 18:07 — with GitHub Actions Inactive

@nishantms nishantms left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minore nits

@shmam
shmam temporarily deployed to github-pages July 22, 2026 21:33 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates npm documentation to clarify that Granular Access Tokens (GATs) with Bypass 2FA enabled will be blocked from account-identity and governance operations starting August 2026, while still being usable for publishing (for now), and points readers to trusted publishing for CI/CD.

Changes:

  • Refines “Bypass 2FA” behavior descriptions to scope bypassing primarily to publishing/package automation.
  • Adds/propagates an August 2026 policy note that account-identity and governance actions require an interactive 2FA challenge.
  • Normalizes a CLI doc table layout for npm stage 2FA/token behavior.
Show a summary per file
File Description
content/packages-and-modules/securing-your-code/requiring-2fa-for-package-publishing-and-settings-modification.mdx Narrows bypass-2FA behavior to publishing and adds an August 2026 restriction note with a cross-link.
content/integrations/integrating-npm-with-external-services/creating-and-viewing-access-tokens.mdx Clarifies the bypass-2FA checkbox scope during token creation and links to the policy details.
content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx Adds a new section describing which actions require interactive 2FA starting August 2026.
content/getting-started/setting-up-your-npm-user-account/about-two-factor-authentication.mdx Adds a warning-note callout about bypass-2FA tokens not being usable for identity/governance actions starting August 2026.
content/cli/v12/commands/npm-stage.mdx Re-formats tables describing 2FA requirements and token behavior for npm stage.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/4 changed files
  • Comments generated: 4
  • Review effort level: Low

@shmam
shmam temporarily deployed to github-pages July 22, 2026 21:49 — with GitHub Actions Inactive
shmam and others added 5 commits July 22, 2026 14:49
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants