chore: address codeql warnings (#201776)

This commit is contained in:
Robo
2024-01-05 18:03:05 +09:00
committed by GitHub
parent c563e053ba
commit cbbef4dc01
3 changed files with 5 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ function getElectronVersion() {
return { electronVersion, msBuildId };
}
function getSha(filename) {
// CodeQL [SM04514] Hash logic cannot be changed due to external dependency, also the code is only used during build.
const hash = (0, crypto_1.createHash)('sha1');
// Read file 1 MB at a time
const fd = fs.openSync(filename, 'r');