Repository navigation
Add CodeQL justification for SHA1 usages - #16596
Merged
Azat Mukhametshin (azat-msft) merged 2 commits intoOct 25, 2026
Merged
Azat Mukhametshin (azat-msft) merged 2 commits into
Azat Mukhametshin (azat-msft) merged 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b55cee24-2c9f-40b2-ac24-1323b59e4bc5
Azat Mukhametshin (azat-msft)
requested review from
Amaury Levé (Evangelink) and
Jakub Jareš (nohwnd)
as code owners
October 22, 2026 15:04
Contributor
There was a problem hiding this comment.
🟢 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
Artur Spychaj (drognanar)
approved these changes
Oct 23, 2026
Jakub Jareš (nohwnd)
approved these changes
Oct 23, 2026
Azat Mukhametshin (azat-msft)
merged commit Oct 25, 2026
844e206
into
microsoft:main
30 of 34 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Suppresses CodeQL SM02196 on the two SHA1 call sites (
TestIdProviderandEqtHash). 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