Skip to content

Commit c934514

Browse files
Suppressing CODEQL warning (#1090)
Co-authored-by: Tarun Ramsinghani <[email protected]>
1 parent 8f34d4f commit c934514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/internal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ function _exposeTaskLibSecret(keyFile: string, secret: string): string | undefin
10591059
if (secret) {
10601060
let encryptKey = crypto.randomBytes(256);
10611061
let cipher = crypto.createCipher("aes-256-ctr", encryptKey);
1062-
let encryptedContent = cipher.update(secret, "utf8", "hex");
1062+
let encryptedContent = cipher.update(secret, "utf8", "hex"); // CodeQL [SM01511] agent need to retrieve password later to connect to proxy server
10631063
encryptedContent += cipher.final("hex");
10641064

10651065
let storageFile = path.join(_getVariable('Agent.TempDirectory') || _getVariable("agent.workFolder") || process.cwd(), keyFile);

0 commit comments

Comments
 (0)