techthoughts2 / Catesta

Catesta is a PowerShell module and vault project generator. It uses templates to rapidly scaffold test and build integration for a variety of CI/CD platforms.
https://www.catesta.dev/
MIT License
169 stars 20 forks source link

windows based builds using Pester fail with certificate mis-match error #90

Closed techthoughts2 closed 3 months ago

techthoughts2 commented 3 months ago

Expected Behavior

Windows based builds should run without an error

Current Behavior

Install-Package: Authenticode issuer 'CN=Jakub Jareš, O=Jakub Jareš, L=Praha, C=CZ' of the new module 'Pester' with version '5.5.0' from
root certificate authority 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US' is not matching
with the authenticode issuer 'CN=Jakub Jareš, O=Jakub Jareš, L=Praha, C=CZ' of the previously-installed module 'Pester'
with version '5.6.1' from root certificate authority 'CN=DigiCert Trusted Root G4, OU=www.digicert.com, O=DigiCert Inc,
C=US'. If you still want to install or update, use -SkipPublisherCheck parameter.

Possible Solution

Likely related to: https://github.com/pester/Pester/issues/2438

Steps to Reproduce

  1. Any project with a windows based build
  2. Trigger build

Detailed Description

Windows based builds are failing with a Pester certificate warning. This is likely due to the windows build container containing an older version possibly of the pester cert and not liking the new certificate mis-match. Linux and MacOS are not affected as they have no previous version of Pester in the default container image.