From 71aa1ebb2a2d75a4c2c223dc02ba76dd67452354 Mon Sep 17 00:00:00 2001 From: Mantavya Dhingra <145761344+MantavyaDh@users.noreply.github.com> Date: Fri, 21 Feb 2025 10:54:31 +0530 Subject: [PATCH] Suppressing CodeQL warning [SM02196] (#5122) --- src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs b/src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs index 07ce4a1315..6e63d5ae05 100644 --- a/src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs +++ b/src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs @@ -55,6 +55,7 @@ public static string ComputeHash(string collectionId, string definitionId, IList private static string CreateHash(string hashInput) { + //CodeQL [SM02196] Supress - Suppressing this warning as the hash is used only in the directory name and not for security purposes. using (SHA1 sha1Hash = SHA1.Create()) { byte[] data = sha1Hash.ComputeHash(Encoding.UTF8.GetBytes(hashInput));