diff --git a/.github/workflows/integrity-check.yml b/.github/workflows/integrity-check.yml index be089b68f..a2040f553 100644 --- a/.github/workflows/integrity-check.yml +++ b/.github/workflows/integrity-check.yml @@ -93,8 +93,10 @@ jobs: } on += 1; - const remoteText = await fetch(url).then((response) => response.text()); - const remoteHash = md5(remoteText); + const remoteBuffer = await fetch(url) + .then((response) => response.arrayBuffer()) + .then((blob) => Buffer.from(blob)); + const remoteHash = md5(remoteBuffer); if (expectedHash !== remoteHash) { mismatch.push({ expectedHash, remoteHash, url });