mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
Fix potential security vulnerability in one of the dependencies
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user