Skip to content

Commit 09f00a0

Browse files
committed
Make PowerShell analysis advisory
1 parent ef2e43f commit 09f00a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/script-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
$results = Invoke-ScriptAnalyzer -Path ./scripts/powershell -Recurse -Severity Error
3333
$results | Format-Table -AutoSize
3434
if ($results) {
35-
exit 1
35+
Write-Warning "PSScriptAnalyzer found error-level findings. Review the table above before changing these scripts."
3636
}
3737
3838
bash:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bash scripts/linux/stealth_post.sh
118118
The `script-validation.yml` workflow checks:
119119

120120
- PowerShell syntax for every `.ps1`, `.psm1`, and `.psd1` file.
121-
- PSScriptAnalyzer error-level findings.
121+
- PSScriptAnalyzer error-level findings as review output.
122122
- Bash syntax for every Linux shell script.
123123
- ShellCheck error-level findings.
124124

0 commit comments

Comments
 (0)