Skip to content

Commit f79ef99

Browse files
Bump PSModule/Invoke-ScriptAnalyzer from 4.1.3 to 5.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).
1 parent d4020f3 commit f79ef99

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/Lint-SourceCode.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
persist-credentials: false
2727

2828
- name: Lint-SourceCode
29-
uses: PSModule/Invoke-ScriptAnalyzer@6aeb1bc093b89f9b15c2ac3e5f9ef9e0879dc755 # v4.1.3
29+
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
3030
with:
3131
Debug: ${{ fromJson(inputs.Settings).Debug }}
32-
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
32+
GitHubPrerelease: ${{ fromJson(inputs.Settings).Prerelease }}
33+
GitHubVersion: ${{ fromJson(inputs.Settings).Version }}
3334
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
34-
Version: ${{ fromJson(inputs.Settings).Version }}
3535
Path: src
3636
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
3737
TestResult_Enabled: true

.github/workflows/Test-Module.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ jobs:
6262
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/module
6363

6464
- name: Lint-Module
65-
uses: PSModule/Invoke-ScriptAnalyzer@6aeb1bc093b89f9b15c2ac3e5f9ef9e0879dc755 # v4.1.3
65+
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
6666
with:
6767
Path: outputs/module
6868
Debug: ${{ fromJson(inputs.Settings).Debug }}
69-
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
69+
GitHubPrerelease: ${{ fromJson(inputs.Settings).Prerelease }}
70+
GitHubVersion: ${{ fromJson(inputs.Settings).Version }}
7071
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
71-
Version: ${{ fromJson(inputs.Settings).Version }}
7272
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
7373
TestResult_Enabled: true
7474
TestResult_TestSuiteName: PSModuleLint-Module-${{ runner.os }}

0 commit comments

Comments
 (0)