Skip to content

[ci] Update PoliCheck suppression signatures - #13834

Closed
jonathanpeppers wants to merge 2 commits into
dotnet:mainfrom
jonathanpeppers:jonathanpeppers-policheck-exclusion
Closed

jonathanpeppers wants to merge 2 commits into
dotnet:mainfrom
jonathanpeppers:jonathanpeppers-policheck-exclusion

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 2e1fe939b4a67cea42e2c59bd115df3e86121732

Dimension Assessment Rationale
Change confidence 9/10 ↑ Archived scans identify the removed-file signatures and match all 16 license findings across the move.
↑ All 31 findings from the reported scan match retained suppressions.
↓ Guardian and PoliCheck were not run locally.
Diagnosis confidence 9.5/10 ↑ The reported signatures differ from the old suppressions for the moved files, while the license rules and contexts match.
Evidence fit 10/10 ↑ The reported scan identifies the 17 findings covered by the new signatures.

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 aapt2 error 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...HEAD and python -m json.tool .gdn\policheck\source.gdnsuppress > $null passed. 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.

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>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 18:37

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.

🔵 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

@jonathanpeppers

Copy link
Copy Markdown
Member Author

/azp run Xamarin.Android-PR

@azure-pipelines

Copy link
Copy Markdown
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>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

/azp run Xamarin.Android-PR

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

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.

2 participants