File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -289,15 +289,15 @@ jobs:
289289 Write-Host "Running PSScriptAnalyzer..." -ForegroundColor Cyan
290290
291291 # Find all .ps1 and .psm1 files in Functions directory
292- $scriptFiles = Get-ChildItem -Path "${{ github.workspace }}/current-module/Functions" -Filter "*.ps1" -Recurse -ErrorAction SilentlyContinue
293- $moduleFiles = Get-ChildItem -Path "${{ github.workspace }}/current-module" -Filter "*.psm1" -Recurse -ErrorAction SilentlyContinue
292+ $scriptFiles = Get-ChildItem -LiteralPath "${{ github.workspace }}/current-module/Functions" -Filter "*.ps1" -Recurse -ErrorAction SilentlyContinue
293+ $moduleFiles = Get-ChildItem -LiteralPath "${{ github.workspace }}/current-module" -Filter "*.psm1" -Recurse -ErrorAction SilentlyContinue
294294
295295 $allFiles = @($scriptFiles) + @($moduleFiles)
296296 $issuesFound = $false
297297
298298 foreach ($file in $allFiles) {
299299 Write-Host "\nAnalyzing: $($file.FullName)" -ForegroundColor Yellow
300- $results = Invoke-ScriptAnalyzer -Path $file.FullName -Settings $settings
300+ $results = Invoke-ScriptAnalyzer -Path ( $file.FullName) -Settings $settings
301301
302302 if ($results) {
303303 $issuesFound = $true
You can’t perform that action at this time.
0 commit comments