Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SignCheck] Output results to an xml file #15591

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

ellahathaway
Copy link
Member

@ellahathaway ellahathaway commented Mar 4, 2025

The logged signing results are difficult to parse because they only show files that are containers or are unexpectedly unsigned. This new logic adds functionality to output all results to an xml file for easier viewing.

Example output:

<SignCheckResults>
  <File Name="FakeSignedContents.nupkg" ResultType="Unsigned">
    <File Name="FakeSignedContents.nupkg/.signature.p7s" ResultType="Skipped" />
    <File Name="FakeSignedContents.nupkg/tools/SignedScript.ps1" ResultType="Skipped" />
  </File>
  <File Name="MsiSetup.msi.wixpack.zip" ResultType="Skipped">
    <File Name="MsiSetup.msi.wixpack.zip/ABCDEFG/MsiApplication.exe" ResultType="Skipped" />
    <File Name="MsiSetup.msi.wixpack.zip/create.cmd" ResultType="Skipped" />
    <File Name="MsiSetup.msi.wixpack.zip/Product.wixobj" ResultType="Skipped" />
  </File>
  <File Name="WithApp.pkg" ResultType="Skipped" />
  <File Name="SameFiles1.zip" ResultType="Skipped">
    <File Name="SameFiles1.zip/Simple1.exe" ResultType="Skipped" />
    <File Name="SameFiles1.zip/Simple2.exe" ResultType="Skipped" />
  </File>
</SignCheckResults>

@ellahathaway ellahathaway requested a review from mmitche March 4, 2025 23:55
mmitche
mmitche previously approved these changes Mar 5, 2025
Copy link
Member

@mmitche mmitche left a comment

Choose a reason for hiding this comment

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

Winner winner chicken dinner. Approved with minor comment.

@ellahathaway ellahathaway merged commit b15b738 into dotnet:main Mar 5, 2025
11 checks passed
@ellahathaway ellahathaway deleted the signcheck-logging branch March 5, 2025 23:39
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