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

Update CheckSignature.ps1 to output checked assemblies and results to a file #27175

Closed
wants to merge 1 commit into from

Conversation

isra-fel
Copy link
Member

@isra-fel isra-fel commented Feb 20, 2025

Update tools/CheckSignature.ps1 to output checked assemblies and their validation results to a file.

  • Add a new parameter OutputFilePath to specify the output file path.
  • Modify Check-StrongName function to log the checked assemblies and their validation results to the specified output file.
  • Modify Check-AuthenticodeSignature function to log the checked assemblies and their validation results to the specified output file.
  • Continue to output the results of the signature checks to the console as before.

For more details, open the Copilot Workspace session.

… a file

Update `tools/CheckSignature.ps1` to output checked assemblies and their validation results to a file.

* Add a new parameter `OutputFilePath` to specify the output file path.
* Modify `Check-StrongName` function to log the checked assemblies and their validation results to the specified output file.
* Modify `Check-AuthenticodeSignature` function to log the checked assemblies and their validation results to the specified output file.
* Continue to output the results of the signature checks to the console as before.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Azure/azure-powershell?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

)

function Check-StrongName {
[CmdletBinding()]
param([Parameter(ValueFromPipeline=$true)][string]$path)
Write-Output "Checking strong name for $path" | Out-File -Append $OutputFilePath
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a parameter validation to ensure that the OutputFilePath is valid and writable.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's worth checking.
I'll implement it in another PR

@isra-fel isra-fel closed this Feb 21, 2025
@isra-fel isra-fel deleted the isra-fel/update-checksignature branch February 21, 2025 06:41
@isra-fel
Copy link
Member Author

Continued in #27205

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