Skip to content

Commit

Permalink
test again
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Aug 11, 2024
1 parent 7743fae commit e414a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/GitHub.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Describe 'GitHub' {
'X-GitHub-Api-Version' = Get-GitHubConfig -Name ApiVersion
}

$AccessToken = Get-GitHubConfig -Name AccessToken
$encryptedString = $AccessToken | ConvertFrom-SecureString
$secureStringRecovered = $encryptedString | ConvertTo-SecureString
$token = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureStringRecovered))

$AccessToken = Get-GitHubConfig -Name AccessToken
if ($AccessToken) {
$headers['Authorization'] = "Bearer $token"
}
Expand Down

0 comments on commit e414a46

Please sign in to comment.