diff --git a/.vscode/settings.json b/.vscode/settings.json index d7eee40..c302ac1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,6 +25,9 @@ "[jsonc]": { "editor.tabSize": 2 }, + "[powershell]": { + "editor.formatOnSave": false + }, "cSpell.words": [ "SARIF" ] diff --git a/powershell.ps1 b/powershell.ps1 index b36ffda..0fee38a 100644 --- a/powershell.ps1 +++ b/powershell.ps1 @@ -18,9 +18,9 @@ param ( [ValidateSet('repository', 'inputPath')] [String]$InputType = $Env:INPUT_INPUTTYPE, - # The path to input files - [Parameter(Mandatory = $False)] - [String]$InputPath = $Env:INPUT_INPUTPATH, + # The path to input files + [Parameter(Mandatory = $False)] + [String]$InputPath = $Env:INPUT_INPUTPATH, # The path to find rules [Parameter(Mandatory = $False)] @@ -226,14 +226,15 @@ Write-Host "[info] Using Conventions: $Conventions"; Write-Host "[info] Using InputType: $InputType"; Write-Host "[info] Using InputPath: $InputPath"; Write-Host "[info] Using Option: $Option"; +Write-Host "[info] Using Outcome: $Outcome"; Write-Host "[info] Using OutputFormat: $OutputFormat"; Write-Host "[info] Using OutputPath: $OutputPath"; try { Push-Location -Path $Path; $invokeParams = @{ - Path = $Source - Style = 'GitHubActions' + Path = $Source + Style = 'GitHubActions' ErrorAction = 'Stop' } WriteDebug "Preparing command-line:";