nulladrift 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/index.js +587 -46
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -111,6 +111,19 @@ not neutral, absent `readOnlyHint` means "may modify", absent `destructiveHint`
|
|
|
111
111
|
"may destroy", so a *removed* annotation is an escalation. The lock writes the effective
|
|
112
112
|
values out in full so that escalation appears as a change rather than as an absence.
|
|
113
113
|
|
|
114
|
+
Everything above is what a server *says*. For a stdio server the lock also records what it *is*:
|
|
115
|
+
the package, image or file behind the command, by content address.
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
"provenance": { "ecosystem": "npm", "name": "@modelcontextprotocol/server-filesystem", "version": "2.2.0", "integrity": "sha512-…" }
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
A release that keeps every tool name, description and schema identical while changing what the
|
|
122
|
+
tools do used to pass `check`. It now fails it, and says that nothing else in the report
|
|
123
|
+
describes the new code. The same npm version arriving with different bytes is
|
|
124
|
+
`server.artifact.substituted`, which has no innocent explanation. `--no-provenance` skips the
|
|
125
|
+
registry lookups for an air-gapped run.
|
|
126
|
+
|
|
114
127
|
Format and rationale: [docs/lockfile.md](docs/lockfile.md). JSON Schema:
|
|
115
128
|
[schema/mcp.lock.schema.json](schema/mcp.lock.schema.json). Worked example:
|
|
116
129
|
[examples/mcp.lock](examples/mcp.lock).
|
|
@@ -160,6 +173,35 @@ a pull request cannot widen what its own build is allowed to do.
|
|
|
160
173
|
**Nothing in this repository depends on it.** `nulladrift check` needs no account, no token and
|
|
161
174
|
no network beyond the servers it is auditing, and that does not change.
|
|
162
175
|
|
|
176
|
+
### Proving which build sent a reading
|
|
177
|
+
|
|
178
|
+
A reading names its own ref and commit, so the collector token alone lets whoever holds it report
|
|
179
|
+
any branch as clean. `push` can send your CI provider's signed identity token as well, and the
|
|
180
|
+
control plane then records the repository, ref and commit as the provider stated them. An
|
|
181
|
+
organization can list the builds it trusts and require every reading to come from one.
|
|
182
|
+
|
|
183
|
+
GitHub Actions needs one permission, and `push` does the rest:
|
|
184
|
+
|
|
185
|
+
```yaml
|
|
186
|
+
permissions:
|
|
187
|
+
contents: read
|
|
188
|
+
id-token: write
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
GitLab CI mints the token into a variable you name:
|
|
192
|
+
|
|
193
|
+
```yaml
|
|
194
|
+
nulladrift:
|
|
195
|
+
id_tokens:
|
|
196
|
+
NULLADRIFT_ID_TOKEN:
|
|
197
|
+
aud: nulladrift
|
|
198
|
+
script: npx nulladrift push
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Any other CI that can mint an OpenID Connect token for a job can put it in `NULLADRIFT_ID_TOKEN`.
|
|
202
|
+
Without one, the reading is recorded as unverified, exactly as before -- `push` never fails for
|
|
203
|
+
want of a token.
|
|
204
|
+
|
|
163
205
|
See [nulladrift.com](https://nulladrift.com).
|
|
164
206
|
|
|
165
207
|
## Layout
|