PowerShell / PowerShellGet

This module provide functions used with PowerShellGet v3 to provide compatibility with scripts expecting PowerShellGet v2
MIT License
49 stars 13 forks source link

Bug with Install-Module failing if authenticode check fails #65

Open alerickson opened 4 months ago

alerickson commented 4 months ago

Prerequisites

Steps to reproduce

Install-Module -Name newtestmodule -Repository PSGallery -Verbose -Debug

Expected behavior

Should write verbose messaging about catalog and authenticode checks, even if they fail. Default behavior of PowerShellGet 2.2.5 is to always check both.

Actual behavior

Install-PSResource does not by default check either. There is an -AuthenticodeCheck flag but this will fail if the authenticode check fails.

One proposal is to have the PowerShellGet (compat layer) not authenticode check.
Another is to add a parameter (such as -Force) to continue installing even if authenticode check fails.

Error details

No response

Environment data

All

Version

3.0.23-beta23

Visuals

No response

alerickson commented 4 months ago

Don't add -AuthenticodeCheck in compat layer, but add authenticode validation in comat.