File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ inputs:
1414 description : Enable/disable sending comments back to PR when PSScriptAnalyzer finds one or more failure checks.
1515 required : false
1616 default : true
17+ repoToken :
18+ description : GitHub token the action will use to send comments back to PR with.
19+ required : false
1720 # sendCommentOnWarnings:
1821 # description: Enable/disable sending comments back to PR when PSScriptAnalyzer finds one or more warning checks.
1922 # required: false
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if ($env:INPUT_SENDCOMMENT -ne 'false' -and $env:INPUT_SENDCOMMENT -ne 0 -and $c
6161 Uri = $commentsUrl
6262 Method = ' Post'
6363 Headers = @ {
64- Authorization = " token $env: GITHUB_TOKEN "
64+ Authorization = " token $env: INPUT_REPOTOKEN "
6565 }
6666 ContentType = ' application/json'
6767 Body = @ {body = $comment } | ConvertTo-Json
You can’t perform that action at this time.
0 commit comments