Skip to content

Commit 33e52f5

Browse files
Use released analyzer report path support
1 parent 192ca04 commit 33e52f5

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/Lint-SourceCode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
persist-credentials: false
2727

2828
- name: Lint-SourceCode
29-
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
29+
uses: PSModule/Invoke-ScriptAnalyzer@9acddbd55ff4634b738be3a219c76e3676aaf1cd # v5.0.1
3030
with:
3131
Debug: ${{ fromJson(inputs.Settings).Debug }}
3232
GitHubPrerelease: ${{ fromJson(inputs.Settings).Prerelease }}

.github/workflows/Test-Module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/module
7171

7272
- name: Lint-Module
73-
uses: PSModule/Invoke-ScriptAnalyzer@4d633e4df1f1fa575949a328839d33c3a0838765 # v5.0.0
73+
uses: PSModule/Invoke-ScriptAnalyzer@9acddbd55ff4634b738be3a219c76e3676aaf1cd # v5.0.1
7474
with:
7575
Path: .PSModule/module
7676
Debug: ${{ fromJson(inputs.Settings).Debug }}

.github/workflows/Workflow-Test-Default.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ jobs:
9191
if (-not $content.Contains($expectedPath)) {
9292
throw "Expected isolated analyzer report path was not found in $workflowPath."
9393
}
94+
95+
$expectedAction = 'uses: PSModule/Invoke-ScriptAnalyzer@9acddbd55ff4634b738be3a219c76e3676aaf1cd # v5.0.1'
96+
if (-not $content.Contains($expectedAction)) {
97+
throw "Expected released analyzer action pin was not found in $workflowPath."
98+
}
9499
}
95100
96101
$buildDocsWorkflow = Get-Content -Path '.github/workflows/Build-Docs.yml' -Raw

0 commit comments

Comments
 (0)