Skip to content

Commit

Permalink
Suppressing CodeQL warning [SM02196] (#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
MantavyaDh authored Feb 21, 2025
1 parent eb3691a commit 71aa1eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Agent.Worker/Build/TrackingConfigHashAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 71aa1eb

Please sign in to comment.