Skip to content

Restore npm provenance (3.0.3) - #161

Merged
MrRefactoring merged 10 commits into
masterfrom
develop
Jul 21, 2026
Merged

Restore npm provenance (3.0.3)#161
MrRefactoring merged 10 commits into
masterfrom
develop

Conversation

@MrRefactoring

Copy link
Copy Markdown
Owner

Restores the npm provenance attestation, and cuts 3.0.3 to put it back on latest.

Why

3.0.2 shipped without a provenance attestation. The release had switched release:publish to changeset publish, which delegates to pnpm 11's native publish — and pnpm reads the provenance flag from .npmrc, not from the NPM_CONFIG_PROVENANCE env var the workflow was setting (that prefix is npm's; pnpm's is PNPM_CONFIG_*). So the flag never reached the publish, and the OIDC-authenticated upload went out unsigned.

3.0.2 installs fine — the trust-downgrade check does not block it — but it lacks the SLSA attestation 3.0.1 carried.

The change

  • .npmrc: provenance=true, where pnpm's native publish actually reads it.
  • release.yml: drop the ineffective NPM_CONFIG_PROVENANCE env var and correct the comment.
  • Changeset for 3.0.3 — identical contents to 3.0.2, published only to restore the signature.

Note

Everything else the last release proved still holds: changeset publish auto-tags the release commit (v3.0.2 landed on the right commit unaided) and no-ops a push with nothing to release. This only fixes the provenance flag's location.

Closes the uniform half of what the schema audit found: 161 -> 83
undocumented fields, 93 -> 50 endpoints, with the suite still passing.

The `_links` group is gone entirely, and it was the bulk — 61 fields,
57% of all occurrences. v1 declared its links object with no properties
at all while using it for every entity, so `_links.webui` existed at
runtime and nowhere in the types. Now it is typed.

`version.ncsStepVersion` and `version.contributorIds` follow, along with
the `_expandable` keys Confluence has grown since the spec was written.

Types are what the API actually returned. `ncsStepVersion` is nullable
because responses came back null; `contributorIds` keeps an open element
type because every array observed was empty, and a guessed element type
would read as breakage rather than as drift.

79 fields remain, with no shape in common — `ari`, `operations`, the
`container` group, user fields like `locale`. Each needs deciding which
schema owns it, so they are a separate pass.
161 undocumented fields across 93 endpoints down to 7 across 5, with the
suite passing 493/493.

This is the long tail the first pass deliberately left: fields with no
shape in common, each needing a decision about which schema owns it.

`Container` turned out to be a second empty schema, like the links one
before it — declared with no properties at all while naming the parent
of every piece of content. Ten fields, including its own `_links`.

The rest are one-offs: `ari` and `base64EncodedAri`, `accountStatus` and
`locale` across the three separate user schemas that each lag
differently, `resolutionStatus` on comments, `operations` and
`properties` on the newer v2 entities.

Seven remain. Each sits either behind an inline response schema with no
name to target, or behind a collection whose item schema differs from
the single-entity one — both want a proper look rather than a guess, and
the audit will keep reporting them until they get one.
Brings develop up to 3.0.1: the version bump, the cleared changesets, and the
release workflow now publishing via changeset publish. develop matches master.
The remaining seven the schema audit reported: Version's comment/attachment, the like
collection's count, the hyphenated inline-comment property keys, the async
content-body's content, and noAccessEmails on the check-access response. Drift is now 0.
pnpm 11 publishes natively and reads provenance from .npmrc, not the
NPM_CONFIG_PROVENANCE env var the workflow set — so 3.0.2 shipped without an
attestation. Move the flag to .npmrc and drop the ineffective env var. Changeset
cuts 3.0.3 to restore provenance on the latest tag; contents are identical to 3.0.2.
@MrRefactoring
MrRefactoring merged commit 6b10499 into master Jul 21, 2026
6 of 7 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.

1 participant