From e414a4660eb400afbd275488cbb809c79c1b09de Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 11 Aug 2024 20:26:28 +0200 Subject: [PATCH] test again --- tests/GitHub.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GitHub.Tests.ps1 b/tests/GitHub.Tests.ps1 index 609cda90..2068dcf2 100644 --- a/tests/GitHub.Tests.ps1 +++ b/tests/GitHub.Tests.ps1 @@ -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" }