惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog

Archive: 2026 - GitHub Changelog

MAI-Code-1-Flash for Copilot Business and Copilot Enterprise - GitHub Changelog GitHub Desktop 3.6: Worktrees and deeper Copilot integration - GitHub Changelog Copilot code review: Analysis depth and efficiency updates - GitHub Changelog Enterprise-managed settings now support strictKnownMarketplaces in VS Code and GitHub Copilot CLI - GitHub Changelog Saved views for repository issues - Public Preview and adjustable row heights in projects - GitHub Changelog More control over your GitHub-hosted runners - GitHub Changelog Actions steps can now be run in parallel - GitHub Changelog npm adds preventive account protection for high-impact accounts - GitHub Changelog Red Hat Enterprise Linux runner images are now in public preview - GitHub Changelog GitHub Copilot for Jira is now generally available - GitHub Changelog Cost centers now support enterprise teams - GitHub Changelog Self-service credential revocation for incident response - GitHub Changelog Changes to model selection for Free and Student plans - GitHub Changelog Secret scanning adds extended metadata for Replicate secrets - GitHub Changelog Fetch Code Quality findings via REST API - GitHub Changelog Automatic Dependabot access to GitHub-hosted registries - GitHub Changelog Copilot CLI: New terminal interface is generally available - GitHub Changelog Deprecation of Python 3.9 for Dependabot - GitHub Changelog GitHub Copilot app support for BYOK - GitHub Changelog New features and Claude as agent provider preview in JetBrains IDEs - GitHub Changelog AI credits consumed per user now in the Copilot usage metrics API - GitHub Changelog Upcoming deprecation of Opus 4.6 (fast) - GitHub Changelog MAI-Code-1-Flash available on more Copilot surfaces - GitHub Changelog Copilot code review: AGENTS.md support and UI improvements - GitHub Changelog Detecting Duplicate Issues - Public Preview and issue fields MCP support for GitHub Issues - GitHub Changelog Copilot-authored pull requests now included in author searches - GitHub Changelog Repository switcher generally available in global navigation - GitHub Changelog Actions: Build custom images from custom images - GitHub Changelog Safer pull_request_target defaults for GitHub Actions checkout - GitHub Changelog Control who and what triggers GitHub Actions workflows - GitHub Changelog
Staged publishing and new install-time controls for npm
Allison · 2026-05-23 · via Archive: 2026 - GitHub Changelog

Today we’re shipping two updates focused on supply-chain security for npm:

  1. Staged publishing is generally available.
  2. New --allow-* install source flags (--allow-file, --allow-remote, --allow-directory) complement the existing --allow-git flag.

Both are available in npm CLI 11.15.0 or newer.


Staged publishing is generally available

Staged publishing is now generally available on npm. Instead of a direct publish that immediately makes a package version available to consumers, the prebuilt tarball is uploaded to a stage queue where a maintainer must explicitly approve it before it becomes installable. The queue is visible both on npmjs.com and in the npm CLI.

Staged publishing reinforces proof of presence on every publish, including those that originate from non-interactive CI/CD workflows and those using trusted publishing with OIDC. A human maintainer with a 2FA challenge is required to approve a staged package before it is released to the registry.

Staged publishing is live today, and so are the docs.

Requirements

  • npm CLI 11.15.0 or newer is required to use npm stage.
  • Update CI/CD workflows to use npm stage publish instead of npm publish where you want staged behavior.

We recommend pairing staged publishing with trusted publishing (OIDC). A trusted publishing configuration can be limited to stage-only, which means npm publish from that workflow will be rejected and only npm stage publish is accepted. Your CI workflows continue to run non-interactively, and a maintainer later approves the staged version from the website or the CLI.

You can also run npm stage publish locally, but the highest-value setup is CI publishing to the stage queue and a maintainer approving from a trusted device.

If you already manage trusted publishing configurations in bulk, released Feb 2026, you can use it to migrate your packages to staged publishing. Remember to update your CI workflows to the new CLI version and to use npm stage publish.

New install source flags

In npm 11.10.0 we introduced --allow-git to give you control over whether npm install can resolve dependencies from Git sources. Starting in npm 11.15.0, we are adding three more flags so you can apply the same explicit-allowlist approach to every nonregistry install source:

  • --allow-file: Controls installs from local file paths and local tarballs.
  • --allow-remote: Controls installs from remote URLs, including https tarballs.
  • --allow-directory: Controls installs from local directories.
  • --allow-git (existing): Controls installs from any Git source, including github:, gitlab:, git+ URLs, and bare owner/repo shorthands.

Each flag accepts all (the current default) or none, and can also be set in .npmrc or package.json config.

Learn more by checking out our docs:

As a reminder from the Feb 2026 announcement, --allow-git will change its default from all to none in the next major version of the CLI (v12). The new --allow-file, --allow-remote, and --allow-directory flags are additions in 11.15.0—you can opt into stricter behavior today by setting them to none.


Join the discussion

We’d like to hear how you’re rolling this out. Share feedback and questions in the GitHub Community discussion.