fix(artifacts): always verify archived checksums; route link CRCs via policy

This commit is contained in:
morluto
2026-10-08 16:38:53 +08:00
parent 949347a148
commit 3910bedae8
4 changed files with 73 additions and 7 deletions
+4 -1
View File
@@ -179,7 +179,10 @@ const visitArtifactEntries = async (
const parent = frame.reader;
const nested: ArtifactReader =
entry.nestedArchive === "gzip-cpio"
? new CpioArtifactReader((signal) => parent.open(entry, signal))
? new CpioArtifactReader(
(signal) => parent.open(entry, signal),
context.integrity.mode,
)
: new AsarArtifactReader(entry.adapterKey);
// Only traversed containers can own members, not opaque archive-named files.
context.expandedContainerIds.add(occurrence.occurrence_id);