From 7a9533938c4d849943584d4ea3fc2a5c4adba40d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 17:45:57 +0200 Subject: [PATCH 1/3] Require Pester 6.x in test files --- tests/Hcl.Tests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Hcl.Tests.ps1 b/tests/Hcl.Tests.ps1 index 3a86fe0..b7a4b0c 100644 --- a/tests/Hcl.Tests.ps1 +++ b/tests/Hcl.Tests.ps1 @@ -1,3 +1,5 @@ +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + [Diagnostics.CodeAnalysis.SuppressMessageAttribute( 'PSReviewUnusedParameter', '', Justification = 'Required for Pester tests' From 68c3d819c7e176cc4eb8fd3fb414302584ba8fdf Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 21:11:54 +0200 Subject: [PATCH 2/3] Drop the GUID from the Pester requirement The GUID pins module identity (precise pinning), a stricter control than the lock-to-major risk appetite. Keep only the version range. --- tests/Hcl.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Hcl.Tests.ps1 b/tests/Hcl.Tests.ps1 index b7a4b0c..d192c46 100644 --- a/tests/Hcl.Tests.ps1 +++ b/tests/Hcl.Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } [Diagnostics.CodeAnalysis.SuppressMessageAttribute( 'PSReviewUnusedParameter', '', From 6323fb8ee4591ab2373c8b4e5c8aeb6bf253f0cf Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 12 Jul 2026 11:55:35 +0200 Subject: [PATCH 3/3] Adopt Process-PSModule v6.1.4 --- .github/workflows/Process-PSModule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index dceb2e0..23b436c 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -27,6 +27,6 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@11117919e65242d3388727819a751f74ad24ea9e # v5.5.0 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@da180bac16b13bfbcdf08b2e4e221b5b49e5ff28 # v6.1.4 secrets: APIKEY: ${{ secrets.APIKEY }}