Open thecircleoflifefree opened 9 months ago
This is set at a repository level and in my environment is set at a Domain level. The Public PSGallery repository where anyone can realistically upload any old tat is untrusted but when you connect to the repository in the first place you can define how that repository is treated using the Register-PSRepository cmdlet.
We have an internally hosted copy of the NuGet Repository where we can push trusted scripts and modules for internal use and that repository is trusted by our computers:
Register-PSRepository -Name YourRepository -InstallationPolicy Trusted -PackageManagementProvider NuGet -PublishLocation 'https://some.url/api/v2/package/' -SourceLocation 'https://some.url/api/v2/'
I would not recommend ever registering the public PSGallery as a trusted repository.
Related Problem
I am trying to do a module installation on windows 11. The fact that it returns it as an "untrusted repository" feels discouraging to continue.
The Elevator Pitch
Is this something that can be addressed by NuGet?
Additional Context and Details