Switch to using sha256 for checksums (fixes CodeQL warning) (#201977)

* Switch to using sha256 for checksums (fixes CodeQL warning)

* Fix unit test
This commit is contained in:
Alexandru Dima
2024-01-08 14:11:19 +01:00
committed by GitHub
parent 51e490e8a2
commit deae3ca4b1
3 changed files with 3 additions and 3 deletions

View File

@@ -184,7 +184,7 @@ function computeChecksum(filename) {
const contents = fs.readFileSync(filename);
const hash = crypto
.createHash('md5')
.createHash('sha256')
.update(contents)
.digest('base64')
.replace(/=+$/, '');