Repository navigation
[ci] Update PoliCheck suppression signatures - #13834
Closed
jonathanpeppers wants to merge 2 commits into
Closed
jonathanpeppers wants to merge 2 commits into
jonathanpeppers wants to merge 2 commits into
Conversation
PoliCheck build 16168378 reported 17 findings whose suppressions no longer matched. Update the signatures to the values in the build log: * src/Microsoft.Android.Build.Tasks/Tasks/Aapt2.cs:396 matches the aapt2 error text \ailed to parse whitelist from config file\; it must stay unchanged. * tools/workload-dependencies/AndroidManifestFeed_d18.0.xml contains verbatim Google license text. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The dehydrated hashes cannot be independently mapped to the 17 reported findings, and PoliCheck has not been rerun, requiring a maintainer with scan access to verify the mappings and suppression application.
No open issues 🎉
What changed in this PR
Updates .NET for Android’s PoliCheck suppressions to match 17 reported findings without modifying the AAPT2 diagnostic text or third-party licenses.
Changes:
- Replaces 17 suppression keys and matching signatures: one for an AAPT2 diagnostic and 16 for license text.
- Preserves existing justifications and the AAPT2 alternative signature.
- Refreshes the suppression set’s last-updated timestamp.
The PR reports successful JSON parsing, signature consistency checks, and git diff --check. PoliCheck was not rerun, so scanner-level effectiveness remains unverified.
| File | Description |
|---|---|
.gdn/policheck/source.gdnsuppress |
Updates 17 suppression signatures and metadata while retaining existing justifications. |
Review effort: Balanced
Member
Author
|
/azp run Xamarin.Android-PR |
|
No pipelines are associated with this pull request. |
Remove signatures for the deleted MonoVM logging and key management files, as well as the old aapt2 alternative signature. Correct the license descriptions for the Intel, MIPS, and Android XR findings. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Member
Author
|
/azp run Xamarin.Android-PR |
|
No pipelines are associated with this pull request. |
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
2e1fe939b4a67cea42e2c59bd115df3e86121732↑ All 31 findings from the reported scan match retained suppressions.
↓ Guardian and PoliCheck were not run locally.
Context: https://devdiv.visualstudio.com/DevDiv/DevDiv%20Team/_build/results?buildId=16168378&view=logs&j=cea97f13-aa8f-5c62-1a4c-3826793da08a&t=efdc787f-274e-5122-0b15-8b92cd93cc6d&l=133
Context: #13513, #13515, #11607, #12868
PoliCheck reported 17 findings with signatures that did not match existing suppressions after the aapt2 task and Android SDK manifest moved. One finding matches an
aapt2error message that the build tasks must recognize; the others occur in third-party license text.Remove the old-path signatures and add the signatures for the current paths. Historical scan results confirm that the 16 license findings have the same rules and contexts. Also remove six suppressions for deleted MonoVM logging and key management files, and correct the Intel, MIPS, and Android XR license descriptions.
Validation:
git diff --check origin/main...HEADandpython -m json.tool .gdn\policheck\source.gdnsuppress > $nullpassed. A comparison of archived scan results confirmed that all 31 findings from the reported scan still match the suppression file and that the obsolete signatures were removed. PoliCheck was not rerun; Guardian and PoliCheck were not available on PATH.