One Approval, Three Results: What Actually Shipped to npm?
The release page says two of three packages succeeded. On a clean runner, the new CLI still will not install: its manifest calls for a runtime version that the registry cannot find. The maintainer remembers approving three versions. That memory is accurate. It just describes a different event.
This is a hypothetical monorepo release, not an npm incident. It is also an outcome the npm documentation explicitly allows: each version has its own result, and a failure does not roll back successful actions. On November 30, 2026, GitHub announced npm batch approval. It binds one 2FA approval to the selected package versions, reducing the friction of staging a monorepo release. Treat the approval as authorization for that set. Determine what actually shipped by checking each version at the registry.
Where the approval boundary sits
Tuesday’s GitHub Actions investigation distinguished a job blocked by event policy from a job that started and then refused a checkout. Staged publishing asks the same kind of question at the other end of the pipeline. CI submitted an artifact, but did npm make that version available to consumers? A successful staging job cannot answer that.
The useful control is not that CI uses OIDC. It is that the identity available to CI can submit a candidate but cannot release it. According to the September trusted publishing update, configurations are additive: npm accepts an operation if an eligible configuration authorizes it. A stage-only release workflow does not constrain an older matching configuration that still permits direct publishing. Check the effective permissions on every package rather than reviewing only the workflow that is supposed to be in use.
Start the review with the package’s trusted publisher entries: repository, workflow, environment where applicable, and allowed operation. Then inventory any granular tokens and the package’s publishing access policy. npm’s trusted publishing guide describes the restrictions for traditional tokens separately from trusted publishing. Removing a CI token is a worthwhile change, but it does not remove a permissive trusted publisher or an administrator’s legitimate manual publish ability. Keep the latter in the threat model and monitor it rather than assuming it disappeared.
Audit tag writes as a separate permission. The npm trusted publishing guide documents that a workflow can be allowed to stage packages and manage dist-tags without being allowed to publish directly. Even if that workflow cannot introduce a new version, it can still change which existing version consumers pick up via a tag. Give the staging job no tag-write permission when the release policy reserves promotion for a separate identity.
There is a precedent for watching the registry independently. In the Axios maintainer’s postmortem, two compromised npm versions went live on March 31, 2026 after unauthorized access to the lead maintainer’s account, without a corresponding change to the project’s underlying code. The team reported that it had no automated alert for an unauthorized publish. That is not evidence that batch approval would have prevented the incident. It is a reason to compare what the registry serves with what the release team authorized, even when the repository shows nothing unusual.
Review the staged tarball, not just the tag
npm describes a web batch of up to 100 entries with one version per package. The staging view exposes the package name, version, dist-tag, publisher and SHASUM; the batch confirmation calls out the selected names and versions. Automated validation has to finish before approval. That gives the operator a place to stop, but it does not answer whether the staged artifact is the one the release team intended or whether it depends on an unavailable sibling. Confirm that the feature is present for the account before making it a release dependency: npm documents a gradual rollout. npm batch workflow.
Build a release manifest from protected source and independently reviewed build output. Give it one row per package: exact version, intended dist-tag, build commit and workflow run, and the digest of the actual tarball. Record the registry’s stage ID where available. Retrieve the staged tarball for inspection using the documented npm stage download on an authorized maintainer account. Compare the bytes using the same digest algorithm on both sides; a UI SHASUM and a base64-encoded SHA-512 SRI value are not interchangeable. Do not unpack or install unreviewed content on the machine used to approve the release.
When the release job and the verification job run under the same mutable workflow and both consume the same unreviewed artifact, agreement proves little about intent. Compare the candidate’s packaged manifest and file inventory with the approved release inputs. Pay attention to bundled dependencies and lifecycle scripts that are present in the archive but absent from the source diff the approver was shown. Use provenance to corroborate where a package was built, where supported. It does not certify the package’s behavior. The earlier GitHub Actions analysis of approval and commit identity treats the same evidence problem further upstream.

Reconcile the result before announcing a release
Keep the distinction between an unsuccessful action and an unknown outcome. npm’s progress view can show an entry as waiting when it has not started or when it cannot confirm the result. If the interface offers a completion check, use it; otherwise refresh the staging view and query the exact package version before deciding what to retry. The absence of a staged entry alone is not proof of publication: both approval and rejection remove entries from that list. npm result handling.
Take one registry snapshot per package from the relevant registry or mirror. Confirm the exact version exists, compare its dist.integrity with the reviewed tarball’s SRI and check the intended tag resolves to it. Treat HTTP or transport errors separately from a confirmed missing version. If consumers use a mirror, measure the view through that mirror too; an origin read cannot establish what the consuming build can fetch. Store the observation time and registry identity alongside the batch result. An integrity mismatch is a stop condition, not something to resolve by promoting a tag or retrying the batch.
The following offline fixture exercises a release gate against two approved versions and one missing sibling. A second case holds the gate when the bytes differ or the tag still points to an older version. The final fixture passes. These are synthetic release receipts, not live observations from npm.
import base64
import hashlib
def sri(content):
digest = hashlib.sha512(content).digest()
return 'sha512-' + base64.b64encode(digest).decode('ascii')
def reconcile(expected, observed):
issues = []
for key, (integrity, tag) in expected.items():
if key not in observed:
issues.append(f'{key}: missing exact version')
continue
actual = observed[key]
if actual['integrity'] != integrity:
issues.append(f'{key}: digest mismatch')
if actual['tags'].get(tag) != key.rsplit('@', 1)[1]:
issues.append(f'{key}: tag drift')
return issues
# Synthetic data only. No packages, credentials or registry calls.
core, cli, runtime = [f'@example/{name}@4.8.0'
for name in ('core', 'cli', 'runtime')]
expected = {key: (sri(key.encode()), 'next')
for key in (core, cli, runtime)}
verified = {key: {'integrity': digest, 'tags': {tag: '4.8.0'}}
for key, (digest, tag) in expected.items()}
cases = {
'partial': ({core: verified[core], cli: verified[cli]},
[f'{runtime}: missing exact version']),
'drift': ({**verified, runtime: {'integrity': sri(b'unexpected'),
'tags': {'next': '4.7.0'}}},
[f'{runtime}: digest mismatch', f'{runtime}: tag drift']),
'complete': (verified, []),
}
for label, (snapshot, want) in cases.items():
got = reconcile(expected, snapshot)
assert got == want, (label, got, want)
print(f'{label}:', '; '.join(got) if got else 'eligible for promotion')
For a dependency that must be available before a dependent ships, use separate approval waves and verify the prerequisite through the consumer’s registry before opening the next wave. If you publish under a temporary dist-tag, withhold promotion until reconciliation passes. That changes which version the tag points to; it does not hide a published version from consumers who request it by version. npm dist-tag semantics. Once consumers may have fetched an unexpected version, scope the investigation by exact version and digest in lockfiles, caches and build inputs. An SBOM and VEX decision pipeline can help organize downstream triage, but it cannot replace the original release evidence.
Page on versions that have no release record
Have a read-only observer compare new registry versions and tag movements with the team’s approved release manifest. An exact version with no approved record warrants investigation even if the package owner is familiar. An approved version with an unexpected digest deserves the same urgency. A missing sibling belongs on a separate release-integrity alert: it blocks promotion but does not, by itself, indicate tampering. Keep the monitor outside the publish workflow so a failed run, or a release the workflow never knew about, does not blind it.
Give the responding engineer enough context to act before opening CI: expected and observed versions, digest and dist-tag, stage ID if recorded, approver, registry endpoint and observation time. For a missed sibling, check staging and decide whether to resume the failed item. For an unrecognized version, preserve the registry evidence and hold further promotions while the release owner checks publisher permissions and account activity. The two alerts should not share a retry button.
💜 Enjoyed this content? Support the blog with USDT (TRC20):
TX7obcjHQbDUXb4mGqoASEu1QFTKT2CFGG
