Repository navigation
Conversation
…-362)
Each npm publish job now declares job-level `permissions: {contents: read,
id-token: write}` and `NPM_CONFIG_PROVENANCE: 'true'`, so every `npm publish`
it runs (direct, scripts/ci/npm-publish-if-missing.sh, napi prepublish,
publish-platforms.js) signs a Sigstore/SLSA provenance statement. Covers the
publish jobs of build-{attention,diskann,gnn,graph-node,graph-transformer,kge,
router,tiny-dancer,typesafe}, publish-rvagent-wasm, ruvllm-build,
ruvllm-native, sona-napi, publish-all (publish-npm) and ruvector-publish.
protected-release already passed --provenance.
No version, runner or repository.url changes: the registry already accepted
provenance for both ruvector.git and RuVector.git casings from this repo
(@ruvector/core@0.1.38, ruvector-core-*@0.1.35).
Co-Authored-By: RuFlo <ruv@ruv.net>
…cted-release coverage Co-Authored-By: RuFlo <ruv@ruv.net>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every CI job that runs
npm publishnow produces npm provenance (Sigstore/SLSA, signed through GitHub Actions OIDC).permissions: { contents: read, id-token: write }andenv: NPM_CONFIG_PROVENANCE: 'true'. The repo's default token is already read-only, socontents: readtakes no access away.--provenance. The env var reaches every publish path in a job: directnpm publish,scripts/ci/npm-publish-if-missing.sh,napi prepublish, andnpm/packages/graph-node/scripts/publish-platforms.js. The generated platform-binary packages (@ruvector/<pkg>-<os>-<arch>) get provenance as well as the wrappers.--dry-runskips signing.publishjob inbuild-attention,build-diskann,build-gnn,build-graph-node,build-graph-transformer,build-kge,build-router,build-tiny-dancer,build-typesafe,publish-rvagent-wasm,ruvllm-build,ruvllm-nativeandsona-napi, pluspublish-all'spublish-npmjob.ruvector-publish. Only the env var was added, because its workflow-level permissions already includeid-token: writefor GCP federation.protected-release. No change; it already passes--provenance.docs/adr/ADR-362-npm-provenance.mdand a matchingINDEX.mdrow. ADR-361 is claimed by draft research(nightly): WASM32 portability of the ADR-347 witness-signing design (ADR-361) #1510, so this takes 362.Not changed, deliberately
ubuntu-24.04/ubuntu-latest), which is the requirement for provenance.repository.urlcasing. The registry compares it case-insensitively. Both casings already carry attestations from this repo:@ruvector/core@0.1.38usesruvector.gitandruvector-core-*@0.1.35useRuVector.git. Rewriting them would also breakscripts/ci/check-platform-manifests.sh(ADR-356). Every CI-published package.json has arepositoryfield pointing at this repo.Do not normalize
repository.urlcasingTwo spellings are in use,
ruvector.giton the wrappers andRuVector.giton the platform manifests, and both are correct as they stand. npm matches the URL against the OIDC repository (https://github.com/ruvnet/RuVector) without regard to case, and both spellings already carry attestations. ADR-356'scheck-platform-manifests.shrequiresRuVector.giton platform manifests. Fix arepositoryfield only when it is missing or names another repo.protected-release.ymlcoverage (already had provenance)It covers exactly
@ruvector/coreandruvector-core-{linux-x64-gnu,linux-arm64-gnu,darwin-x64,darwin-arm64,win32-x64-msvc}, published from sealednpm packtarballs. It does not cover:ruvectorumbrella;@ruvector/*wrapper or its-<platform>packages;core@0.1.38is attested.core@0.1.39is not, because it was published outside this workflow.Validation
actionlint1.7.12 on all 15 changed workflows reports no findings before or after the change.node scripts/adr-index.mjs --checkpasses.build-routerandbuild-kge, which re-verify on the registry, that takes about 12 minutes to turn the job red.Caveat
Versions published from a laptop have no provenance, and it cannot be added later. Most of the repo's npm packages have no CI publish path yet (see the ADR), so they stay unattested until one exists.
Verify with
npm audit signatures, orcurl https://registry.npmjs.org/-/npm/v1/attestations/<pkg>@<ver>.🤖 Generated with RuFlo