ci(release): switch npm publishing to OIDC trusted publishing; document verified releases (#1298)
All seven published packages (@colbymchenry/codegraph + six platform bundles) now have this repo's release.yml configured as their trusted publisher on npmjs.com, so publishes authenticate via the workflow's OIDC identity instead of a long-lived NPM_TOKEN. The runner upgrades to npm 11 (trusted publishing needs >= 11.5; Node 22 bundles npm 10) and setup-node no longer writes a token-referencing .npmrc. README gains a 'Verified releases' section + badges: how npm provenance and the GitHub Release attestations work and the commands to verify them (npm audit signatures / gh attestation verify). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
a66683d3eb
commit
243ef1d3e2
@@ -17,6 +17,8 @@ Follow [@getcodegraph](https://x.com/getcodegraph) on X for updates.
|
||||
[](https://www.npmjs.com/package/@colbymchenry/codegraph)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://nodejs.org/)
|
||||
[](#verified-releases)
|
||||
[](#verified-releases)
|
||||
|
||||
[](#supported-platforms)
|
||||
[](#supported-platforms)
|
||||
@@ -56,6 +58,7 @@ Follow [@getcodegraph](https://x.com/getcodegraph) on X for updates.
|
||||
- [Library Usage](#library-usage)
|
||||
- [Configuration](#configuration)
|
||||
- [Telemetry](#telemetry)
|
||||
- [Verified releases](#verified-releases)
|
||||
- [Supported Platforms](#supported-platforms)
|
||||
- [Supported Agents](#supported-agents)
|
||||
- [Supported Languages](#supported-languages)
|
||||
@@ -743,6 +746,33 @@ codegraph telemetry off # or: CODEGRAPH_TELEMETRY=0, or DO_NOT_TRACK=1
|
||||
[`TELEMETRY.md`](TELEMETRY.md) lists every field, with the off-switches and the
|
||||
full data-handling story.
|
||||
|
||||
## Verified releases
|
||||
|
||||
Every artifact is built and published by the public
|
||||
[Release workflow](.github/workflows/release.yml) — never from a laptop — and
|
||||
carries cryptographic proof of it:
|
||||
|
||||
- **npm packages** are published via [trusted publishing](https://docs.npmjs.com/trusted-publishers)
|
||||
(OIDC — no long-lived npm tokens exist that could be stolen) with
|
||||
[provenance attestations](https://docs.npmjs.com/generating-provenance-statements)
|
||||
linking every version to the exact commit and workflow run that built it.
|
||||
Verify what's installed:
|
||||
|
||||
```bash
|
||||
npm audit signatures
|
||||
```
|
||||
|
||||
- **GitHub Release bundles** (and `SHA256SUMS`) carry signed
|
||||
[build attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations)
|
||||
(SLSA v1.0 Build Level 2). Verify any downloaded bundle:
|
||||
|
||||
```bash
|
||||
gh attestation verify codegraph-darwin-arm64.tar.gz -R colbymchenry/codegraph
|
||||
```
|
||||
|
||||
Releases published before July 2026 predate this pipeline and don't carry
|
||||
attestations.
|
||||
|
||||
## Supported Platforms
|
||||
|
||||
Every release ships a self-contained build (bundled Node runtime — nothing to
|
||||
|
||||
Reference in New Issue
Block a user