Commit 33f7f5b
authored
Bump PSModule/Invoke-Pester from 4.2.6 to 5.1.0 in the github-actions group across 1 directory (#393)
Bumps the github-actions group with 1 update in the / directory:
[PSModule/Invoke-Pester](https://github.com/psmodule/invoke-pester).
Updates `PSModule/Invoke-Pester` from 4.2.6 to 5.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/psmodule/invoke-pester/releases">PSModule/Invoke-Pester's
releases</a>.</em></p>
<blockquote>
<h2>v5.1.0</h2>
<h1>🚀 [Minor]: Add optional GUID identity pinning to Pester selection
(<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/73">#73</a>)</h1>
<p>Adds an optional <code>Guid</code> input so a workflow can pin Pester
by <strong>module identity (GUID)</strong>, validated at install time.
Combined with a <code>#Requires</code> GUID pin in test files, identity
is validated <strong>the whole way</strong> — on the developer's machine
and in CI at discovery, and now also in CI at the action's install step
(shifted left, one clear failure point).</p>
<ul>
<li>Fixes <a
href="https://redirect.github.com/psmodule/invoke-pester/issues/68">#68</a></li>
</ul>
<h2>Added: <code>Guid</code> input for module-identity pinning</h2>
<p>The optional <code>Guid</code> input pins Pester by module identity.
After resolving and installing the version, the action validates the
loaded module's GUID and <strong>fails fast</strong> if it does not
match — guarding against a different module named <code>Pester</code> on
the runner's <code>PSModulePath</code>.</p>
<pre lang="yaml"><code>- uses: PSModule/Invoke-Pester@v5
with:
Version: '6.0.0'
Guid: 'a699dea5-2c73-4616-a270-1f7abb777e71'
</code></pre>
<p>Validation now happens at every layer:</p>
<ul>
<li><strong>Developer machine / CI at test discovery</strong> — via
<code>#Requires -Modules @{ ...; GUID = ... }</code> in test files.</li>
<li><strong>CI at the action's init/install step</strong> — via the new
<code>Guid</code> input (earliest single point of failure).</li>
</ul>
<h2>Technical Details</h2>
<ul>
<li><code>action.yml</code>: new optional <code>Guid</code> input,
passed to both the init and exec phases via
<code>PSMODULE_INVOKE_PESTER_INPUT_Guid</code>.</li>
<li><code>Install-PSResourceWithRetry</code>: new <code>-Guid</code>
parameter; after import, it validates the loaded module's
<code>Guid</code> and throws a clear error on mismatch.
<code>Install-PSResource</code> cannot select by GUID (gallery identity
is name + version), so identity is enforced at import.</li>
<li><code>init.ps1</code> / <code>exec.ps1</code>: read the input and
pass <code>-Guid</code> through.</li>
<li>Tests:
<ul>
<li><code>PesterGuidPin</code> pins via <strong>both</strong> the
<code>Guid</code> input and <code>#Requires</code> (validating the whole
way).</li>
<li><code>PesterGuidMatch</code> pins via the <code>Guid</code> input
only (version-only <code>#Requires</code>), asserting a matching GUID
lets the run <strong>succeed</strong>.</li>
<li><code>PesterGuidMismatch</code> passes a wrong <code>Guid</code> and
asserts the action <strong>fails</strong>.</li>
</ul>
</li>
<li>Docs: README input table updated.</li>
<li>Verified locally: a correct GUID imports; a wrong GUID throws
<code>Loaded 'Pester' does not match the required GUID ...</code>.</li>
</ul>
<p>This closes the last remaining item on <a
href="https://redirect.github.com/psmodule/invoke-pester/issues/68">#68</a>
— the version-selection core shipped in <a
href="https://redirect.github.com/psmodule/invoke-pester/issues/71">#71</a>
(v5.0.0), and this adds the optional GUID identity pin.</p>
<h2>v5.0.0</h2>
<h1>🌟 [Major]: Version and Prerelease inputs now control Pester (<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/71">#71</a>)</h1>
<p>Invoke-Pester now treats <code>Version</code> and
<code>Prerelease</code> as Pester controls. Workflows that previously
used those inputs to choose the GitHub PowerShell module used by the
init bootstrap step must rename them to <code>GitHubVersion</code> and
<code>GitHubPrerelease</code>. Workflows that did not set
<code>Version</code> or <code>Prerelease</code> keep installing the
latest available Pester by default.</p>
<ul>
<li>Related to <a
href="https://redirect.github.com/psmodule/invoke-pester/issues/68">#68</a></li>
<li>Aligns with <a
href="https://redirect.github.com/PSModule/GitHub-Script/issues/97">PSModule/GitHub-Script#97</a>
for NuGet version-range syntax</li>
</ul>
<h2>Breaking Changes</h2>
<p><code>Version</code> and <code>Prerelease</code> now apply to Pester,
not the GitHub PowerShell module used internally during init.</p>
<p>Before this change, a workflow like this selected the GitHub module
version:</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/PSModule/Invoke-Pester/commit/4ff33199141fdf22568990b6107fe3148ae93a1c"><code>4ff3319</code></a>
🚀 [Minor]: Add optional GUID identity pinning to Pester selection (<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/73">#73</a>)</li>
<li><a
href="https://github.com/PSModule/Invoke-Pester/commit/8a4e652731c01e3b18451ce7b5d37ff6c1429153"><code>8a4e652</code></a>
🌟 [Major]: Version and Prerelease inputs now control Pester (<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/71">#71</a>)</li>
<li><a
href="https://github.com/PSModule/Invoke-Pester/commit/0a4e7b305870cbcfb521be30136b44cb372c031a"><code>0a4e7b3</code></a>
Bump actions/checkout from 6.0.2 to 7.0.0 (<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/66">#66</a>)</li>
<li><a
href="https://github.com/PSModule/Invoke-Pester/commit/32994271c986550a8f681aef9a7d1564d2918883"><code>3299427</code></a>
Bump super-linter/super-linter from 8.6.0 to 8.7.0 (<a
href="https://redirect.github.com/psmodule/invoke-pester/issues/67">#67</a>)</li>
<li>See full diff in <a
href="https://github.com/psmodule/invoke-pester/compare/9cf262a79e7528d5af41c875c35dae91c44d18dd...4ff33199141fdf22568990b6107fe3148ae93a1c">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 6dfddf4 commit 33f7f5b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments