Skip to content

Commit

Permalink
Suppressing CODEQL warning (#1090)
Browse files Browse the repository at this point in the history
Co-authored-by: Tarun Ramsinghani <[email protected]>
  • Loading branch information
tarunramsinghani and lajijijij authored Jan 17, 2025
1 parent 8f34d4f commit c934514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c934514

Please sign in to comment.