Skip to content

Commit

Permalink
dump
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Jan 22, 2025
1 parent 78e3ee1 commit 8395f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Actions/Github-Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ function GetAccessToken {
if ($permissions) {
$body += @{ "permissions" = $permissions }
}
Write-Host "Get Token Response $($appInfo.access_tokens_url)"
$tokenResponse = Invoke-RestMethod -Method POST -UseBasicParsing -Headers $headers -Uri $appInfo.access_tokens_url
Write-Host "Get Token Response $($appInfo.access_tokens_url) with $($body | ConvertTo-Json -Compress)"

Check warning

Code scanning / PSScriptAnalyzer

File 'Github-Helper.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning

File 'Github-Helper.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
$tokenResponse = Invoke-RestMethod -Method POST -UseBasicParsing -Headers $headers -Body $Body -Uri $appInfo.access_tokens_url
Write-Host "return token"

Check warning

Code scanning / PSScriptAnalyzer

File 'Github-Helper.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning

File 'Github-Helper.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
$script:realTokenCache = @{
"token" = $token
Expand Down

0 comments on commit 8395f83

Please sign in to comment.