mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
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:
@@ -184,7 +184,7 @@ function computeChecksum(filename) {
|
||||
const contents = fs.readFileSync(filename);
|
||||
|
||||
const hash = crypto
|
||||
.createHash('md5')
|
||||
.createHash('sha256')
|
||||
.update(contents)
|
||||
.digest('base64')
|
||||
.replace(/=+$/, '');
|
||||
|
||||
Reference in New Issue
Block a user