Skip to content

Add CodeQL justification for SHA1 usages - #16596

Merged
Azat Mukhametshin (azat-msft) merged 2 commits into
microsoft:mainfrom
azat-msft:azatm/codeql-sha1-justification
Oct 25, 2026
Merged

Azat Mukhametshin (azat-msft) merged 2 commits into
microsoft:mainfrom
azat-msft:azatm/codeql-sha1-justification

Conversation

@azat-msft

@azat-msft Azat Mukhametshin (azat-msft) commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description

Suppresses CodeQL SM02196 on the two SHA1 call sites (TestIdProvider and EqtHash). SHA1 only derives non-security test ids and is being replaced by xxHash128, which is available behind an opt-in flag and will become the default before SHA1 is removed.

Related issue

N/A

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b55cee24-2c9f-40b2-ac24-1323b59e4bc5

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to explanatory comments, with no runtime or API changes and no unresolved findings.

No open issues 🎉

What changed in this PR

Adds CodeQL SM02196 justification comments to VSTest’s two SHA1 test-identifier call sites, without changing runtime behavior or public APIs.

Changes:

  • Clarifies that SHA1 generates non-security test identifiers, not integrity or authentication values.
  • Documents the planned transition to xxHash128 and eventual removal of SHA1.
File Description
src/​Microsoft.TestPlatform.ObjectModel/​Utilities/​EqtHash.cs Adds SHA1 usage justification and migration context.
src/​Microsoft.TestPlatform.AdapterUtilities/​TestIdProvider.cs Adds SHA1 usage justification referencing TestIdProviderXxHash128.

Review effort: Balanced

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b55cee24-2c9f-40b2-ac24-1323b59e4bc5
Copilot AI balanced review requested due to automatic review settings October 23, 2026 08:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Both changes are limited to explanatory comments, with no blocking issues identified.

No open issues 🎉

Review effort: Balanced

@azat-msft
Azat Mukhametshin (azat-msft) merged commit 844e206 into microsoft:main Oct 25, 2026
30 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants