diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 410cbba..be2a7a8 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -44,10 +44,11 @@ jobs: Install-Module PSScriptAnalyzer -Scope CurrentUser -Force -AllowClobber } - $paths = @('scripts', 'template', 'runner', 'Setup-Host.ps1') + $settings = Join-Path $PWD 'PSScriptAnalyzerSettings.psd1' + $paths = @('scripts', 'template', 'Setup-Host.ps1') $results = $paths | ForEach-Object { if (Test-Path $_) { - Invoke-ScriptAnalyzer -Path $_ -Recurse -Severity Error,Warning + Invoke-ScriptAnalyzer -Path $_ -Recurse -Settings $settings -Severity Error,Warning } }