diff --git a/packages/artifact/__tests__/util.test.ts b/packages/artifact/__tests__/util.test.ts index 4d043844..a62babba 100644 --- a/packages/artifact/__tests__/util.test.ts +++ b/packages/artifact/__tests__/util.test.ts @@ -234,6 +234,6 @@ describe('Utils', () => { const digest = await utils.digestForStream(stream) expect(digest.crc64).toBe('bSzITYnW/P8=') - expect(digest.md5).toBe('Xiv1fT9AxLbfadrxk2y3ZvgyN0tPwCWafL/wbi9w8mk=') + expect(digest.md5).toBe('gKdR/eV3AoZAxBkADjPrpg==') }) }) diff --git a/packages/artifact/src/internal/utils.ts b/packages/artifact/src/internal/utils.ts index 94217a5c..063b5dbf 100644 --- a/packages/artifact/src/internal/utils.ts +++ b/packages/artifact/src/internal/utils.ts @@ -309,7 +309,7 @@ export async function digestForStream( ): Promise { return new Promise((resolve, reject) => { const crc64 = new CRC64() - const md5 = crypto.createHash('sha256') + const md5 = crypto.createHash('md5') stream .on('data', data => { crc64.update(data)