Skip to content

Commit

Permalink
Show outcome in output #171 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Oct 17, 2022
1 parent 8af9d5c commit 8985264
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"[jsonc]": {
"editor.tabSize": 2
},
"[powershell]": {
"editor.formatOnSave": false
},
"cSpell.words": [
"SARIF"
]
Expand Down
11 changes: 6 additions & 5 deletions powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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:";
Expand Down

0 comments on commit 8985264

Please sign in to comment.