Fix potential security vulnerability in one of the dependencies

This commit is contained in:
Alexey Igrychev
2020-08-04 13:19:24 +02:00
parent d7370d10e7
commit 89104a7687
11 changed files with 2081 additions and 872 deletions

View File

@@ -60,7 +60,7 @@ export class Manager {
await this.Exec(['ci-env', 'github', '--as-env-file', '-o', tmpFilePath])
dotenv.config({path: tmpFilePath})
fs.readFile(tmpFilePath, null, function (err, contents) {
fs.readFile(tmpFilePath, null, function(err, contents) {
if (err) {
console.error(err)
} else {
@@ -172,6 +172,9 @@ export class Manager {
private static _toolVersionCacheID(binaryUrl: string): string {
const md5sum = crypto.createHash('md5')
return md5sum.update(binaryUrl).digest('hex').toString()
return md5sum
.update(binaryUrl)
.digest('hex')
.toString()
}
}