Use sha256 (resolves CodeQL warning) (#201978)

* Use sha256 (resolves CodeQL warning)

* check in JS file too
This commit is contained in:
Alexandru Dima
2024-01-08 17:03:22 +01:00
committed by GitHub
parent 545eb1dabe
commit cea4eee18a
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const { dirs } = require('../../npm/dirs');
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, '.yarnrc')));