mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Use sha256 (resolves CodeQL warning) (#201978)
* Use sha256 (resolves CodeQL warning) * check in JS file too
This commit is contained in:
@@ -9,7 +9,7 @@ const path = require("path");
|
|||||||
const crypto = require("crypto");
|
const crypto = require("crypto");
|
||||||
const { dirs } = require('../../npm/dirs');
|
const { dirs } = require('../../npm/dirs');
|
||||||
const ROOT = path.join(__dirname, '../../../');
|
const ROOT = path.join(__dirname, '../../../');
|
||||||
const shasum = crypto.createHash('sha1');
|
const shasum = crypto.createHash('sha256');
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'build/.cachesalt')));
|
shasum.update(fs.readFileSync(path.join(ROOT, 'build/.cachesalt')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, '.yarnrc')));
|
shasum.update(fs.readFileSync(path.join(ROOT, '.yarnrc')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'remote/.yarnrc')));
|
shasum.update(fs.readFileSync(path.join(ROOT, 'remote/.yarnrc')));
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const { dirs } = require('../../npm/dirs');
|
|||||||
|
|
||||||
const ROOT = path.join(__dirname, '../../../');
|
const ROOT = path.join(__dirname, '../../../');
|
||||||
|
|
||||||
const shasum = crypto.createHash('sha1');
|
const shasum = crypto.createHash('sha256');
|
||||||
|
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, 'build/.cachesalt')));
|
shasum.update(fs.readFileSync(path.join(ROOT, 'build/.cachesalt')));
|
||||||
shasum.update(fs.readFileSync(path.join(ROOT, '.yarnrc')));
|
shasum.update(fs.readFileSync(path.join(ROOT, '.yarnrc')));
|
||||||
|
|||||||
Reference in New Issue
Block a user