Live
Cloudflare Images Analytics Dashboard Adds 30‑Day Delivery VisibilityAmazon ECS Adds Native Blue/Green, Canary, and Linear Deployments for Safer Container RolloutsGemini agentic tools add LLM‑driven automation to Partner Marketing StudioGitHub Actions makes RHEL 9/10 runner images generally available for larger workloadsIntegrating Decider Models to Reduce Latency and Cost in AI Agent WorkflowsAWS Emulator Enables Local Testing of 200+ Services, but Lacks IAM ValidationSageMaker AI monitoring adds automatic latency drift, idle GPU, and configuration gap detection for inference endpointsEmbedding Proactive Governance into Enterprise‑Scale Agentic AICloudflare Images Analytics Dashboard Adds 30‑Day Delivery VisibilityAmazon ECS Adds Native Blue/Green, Canary, and Linear Deployments for Safer Container RolloutsGemini agentic tools add LLM‑driven automation to Partner Marketing StudioGitHub Actions makes RHEL 9/10 runner images generally available for larger workloadsIntegrating Decider Models to Reduce Latency and Cost in AI Agent WorkflowsAWS Emulator Enables Local Testing of 200+ Services, but Lacks IAM ValidationSageMaker AI monitoring adds automatic latency drift, idle GPU, and configuration gap detection for inference endpointsEmbedding Proactive Governance into Enterprise‑Scale Agentic AI
GitHub

npm Trusted Publishing Configurations Auto‑Expire After 48 Hours

AI SummaryPowered by AI

npm now forces any newly created unvalidated trusted publishing configuration to become invalid after 48 hours unless it has completed a successful publish. The change limits the window for a compromised repository to publish packages and forces CI pipelines to use approved GitHub Actions events, affecting supply‑chain security and automation reliability.

npm has introduced a 48‑hour expiration for any trusted publishing configuration that has not yet been validated by a successful publish. After the window closes the configuration can no longer authorize package uploads, and the token is rejected for certain GitHub Actions events.

Change Overview

When a developer creates a new trusted publishing entry, npm marks it as unvalidated. If the first publish does not occur within two days, the entry automatically expires and loses its publishing rights. The entry becomes validated—and therefore exempt from expiration—once the initial publish succeeds. Changing the repository or project name does not reset the timer; a fresh configuration must be created for the new identity. Expired entries stay visible in the trusted publisher UI but are excluded from per‑package limits, while any other active configurations continue to work.

Impact on CI/CD and Supply‑Chain Security

CI pipelines that rely on trusted publishing must now ensure that the first publish happens quickly, or they risk a sudden loss of publishing capability. Additionally, npm has extended its event restrictions: tokens issued from issue_comment events are rejected, leaving only push, release, and workflow_dispatch as permitted triggers. This narrows the attack surface for malicious actors who might otherwise hijack a repository name and use a stale trust relationship to push compromised packages.

Operational Adjustments

  • Schedule the initial trusted publish within the 48‑hour window, or automate recreation of the configuration if the window is missed.
  • Audit GitHub Actions workflows to confirm they use push, release, or workflow_dispatch events for publishing steps.
  • Monitor the trusted publisher UI for expired entries to avoid unexpected limit calculations.
  • Document the need for a new trust relationship whenever a repository or project name changes.

Related CloudNinjas coverage: DevOps.

What This Means For Practitioners

Teams should treat the 48‑hour period as a hard deadline for validating new trusted publishing setups and adjust automation to use only the allowed GitHub Actions events. Proactive monitoring and quick remediation of expired configurations will keep supply‑chain pipelines reliable and reduce exposure to stale trust relationships.

Originally published atGitHub Changelog