Skip to content

🩹 [Patch]: Bump Invoke-ScriptAnalyzer to v5.0.0 and Test-PSModule to v3.0.14#380

Merged
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
deps/invoke-scriptanalyzer-v5
Jul 11, 2026
Merged

🩹 [Patch]: Bump Invoke-ScriptAnalyzer to v5.0.0 and Test-PSModule to v3.0.14#380
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
deps/invoke-scriptanalyzer-v5

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 11, 2026

Copy link
Copy Markdown
Member

Brings Process-PSModule's lint/test action dependencies to their latest releases: PSModule/Invoke-ScriptAnalyzer v4.1.3 → v5.0.0 and PSModule/Test-PSModule v3.0.13 → v3.0.14. Both preserve the reusable workflow's Settings.Version/Settings.Prerelease contract for consumers.

Changed: Invoke-ScriptAnalyzer upgraded to v5.0.0

Invoke-ScriptAnalyzer v5.0.0 is a major release that repurposed its Version/Prerelease inputs to select the PSScriptAnalyzer module version and moved the GitHub bootstrap-module controls to GitHubVersion/GitHubPrerelease.

The Lint-SourceCode and Lint-Module steps pass Settings.Version/Settings.Prerelease, which in this ecosystem select the GitHub module (the same values feed the Invoke-Pester and GitHub-Script steps). They are now wired to Invoke-ScriptAnalyzer's GitHubVersion/GitHubPrerelease, so those settings keep controlling the GitHub module exactly as before. No change to the Settings contract.

With v5, the action also installs PSScriptAnalyzer itself (latest, since its Version is left unset) instead of relying on the runner's preinstalled copy — so consumer linting now runs against the latest PSScriptAnalyzer.

Changed: Test-PSModule upgraded to v3.0.14

Patch release; Test-PSModule v3.0.14 (which internally bumped Invoke-Pester to v5.1.0) preserves its own Version/Prerelease (GitHub module) contract, so the Test-SourceCode and Test-Module steps need only a SHA update — no input remap.

Technical Details

  • Lint-SourceCode.yml, Test-Module.yml: Invoke-ScriptAnalyzer 6aeb1bc (v4.1.3) → 4d633e4 (v5.0.0); remapped VersionGitHubVersion, PrereleaseGitHubPrerelease.
  • Test-Module.yml, Test-SourceCode.yml: Test-PSModule 25c9cd8 (v3.0.13) → 902c5e5 (v3.0.14).
  • Pester and PSScriptAnalyzer versions left at the v5 defaults (latest); not wired to any Settings key.
  • Scope: the Invoke-Pester step (Test-ModuleLocal.yml, still v4.2.6) is intentionally untouched.
  • Label note: the Settings contract is preserved (hence Patch), but consumer linting now runs against the latest PSScriptAnalyzer — bump to Minor if you'd rather signal that behavior change.

Release notes: Invoke-ScriptAnalyzer v5.0.0

Invoke-ScriptAnalyzer v5.0.0 repurposed the Version and Prerelease inputs to select the PSScriptAnalyzer module version and moved the GitHub bootstrap-module controls to GitHubVersion and GitHubPrerelease. Remap the Lint-SourceCode and Lint-Module steps' Version/Prerelease (which carry Settings.Version/Prerelease, i.e. the GitHub module version) to GitHubVersion/GitHubPrerelease to preserve behavior. PSScriptAnalyzer version is left at the v5 default (latest).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the reusable linting workflows to use PSModule/Invoke-ScriptAnalyzer v5.0.0 while keeping the existing inputs.Settings.Version / inputs.Settings.Prerelease behavior for consumers by remapping those settings to the action’s new GitHubVersion / GitHubPrerelease inputs.

Changes:

  • Bumped PSModule/Invoke-ScriptAnalyzer from v4.1.3 to v5.0.0 (pinned by commit SHA) in both lint workflows.
  • Remapped workflow settings from Version/PrereleaseGitHubVersion/GitHubPrerelease to preserve the reusable workflow contract.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/Test-Module.yml Upgrades Invoke-ScriptAnalyzer to v5.0.0 and remaps inputs to keep Settings-driven GitHub module selection.
.github/workflows/Lint-SourceCode.yml Upgrades Invoke-ScriptAnalyzer to v5.0.0 and remaps inputs to keep Settings-driven GitHub module selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Patch bump; v3.0.14 preserves Test-PSModule's Version/Prerelease (GitHub module) contract, so no input remap is needed. Pure SHA update in the Test-SourceCode and Test-Module steps.
Copilot AI review requested due to automatic review settings July 11, 2026 14:31
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🩹 [Patch]: Bump PSModule/Invoke-ScriptAnalyzer to v5.0.0 🩹 [Patch]: Bump Invoke-ScriptAnalyzer to v5.0.0 and Test-PSModule to v3.0.14 Jul 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/Test-SourceCode.yml
Comment thread .github/workflows/Test-Module.yml
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 06fd9ad into main Jul 11, 2026
69 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the deps/invoke-scriptanalyzer-v5 branch July 11, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants