fix(artifacts): diagnose unpacked ASAR integrity failures

This commit is contained in:
morluto
2026-07-13 17:00:37 +08:00
parent e933489fb5
commit a504342d2b
9 changed files with 68 additions and 6 deletions
+7
View File
@@ -272,6 +272,13 @@ const scanReader = async (
throw new ArtifactReaderFailure(
"integrity",
`Artifact integrity metadata disagrees with content: ${logicalPath}`,
undefined,
{
logicalPath,
declaredSha256: entry.declaredSha256,
calculatedSha256: digest.sha256,
unpacked: entry.unpacked,
},
);
if (totalBytes > limits.maxTotalBytes)
throw new ArtifactReaderFailure(