From c93451450b44cfdd7eeda288c877883a09a20f55 Mon Sep 17 00:00:00 2001 From: Tarun Ramsinghani <2929463+tarunramsinghani@users.noreply.github.com> Date: Fri, 17 Jan 2025 11:34:32 +0530 Subject: [PATCH] Suppressing CODEQL warning (#1090) Co-authored-by: Tarun Ramsinghani --- node/internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/internal.ts b/node/internal.ts index d3b271ff3..a441b68e9 100644 --- a/node/internal.ts +++ b/node/internal.ts @@ -1059,7 +1059,7 @@ function _exposeTaskLibSecret(keyFile: string, secret: string): string | undefin if (secret) { let encryptKey = crypto.randomBytes(256); let cipher = crypto.createCipher("aes-256-ctr", encryptKey); - let encryptedContent = cipher.update(secret, "utf8", "hex"); + let encryptedContent = cipher.update(secret, "utf8", "hex"); // CodeQL [SM01511] agent need to retrieve password later to connect to proxy server encryptedContent += cipher.final("hex"); let storageFile = path.join(_getVariable('Agent.TempDirectory') || _getVariable("agent.workFolder") || process.cwd(), keyFile);