Commit 196d502
fix(lockfile): don't pre-set provenance before verification succeeds
- zig.rs: remove premature minisign provenance from resolve_lock_info;
provenance is recorded in install_version_ after download() confirms
minisign verification succeeded
- github.rs: add defense-in-depth checks that verify the provenance type
returned by successful verification matches the lockfile expectation,
preventing silent type switches between mechanisms
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0a48ab4 commit 196d502
2 files changed
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
| |||
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1216 | 1225 | | |
1217 | 1226 | | |
1218 | 1227 | | |
| |||
1238 | 1247 | | |
1239 | 1248 | | |
1240 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1241 | 1259 | | |
1242 | 1260 | | |
1243 | 1261 | | |
| |||
1258 | 1276 | | |
1259 | 1277 | | |
1260 | 1278 | | |
1261 | | - | |
| 1279 | + | |
1262 | 1280 | | |
1263 | 1281 | | |
1264 | 1282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| |||
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
433 | | - | |
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
| |||
0 commit comments