diff --git a/src/functions/public/Auth/Context/Set-GitHubContext.ps1 b/src/functions/public/Auth/Context/Set-GitHubContext.ps1 index 01e0217c..cb420df5 100644 --- a/src/functions/public/Auth/Context/Set-GitHubContext.ps1 +++ b/src/functions/public/Auth/Context/Set-GitHubContext.ps1 @@ -52,7 +52,7 @@ function Set-GitHubContext { # Run functions to get info on the temporary context. try { Write-Verbose "Getting info on the context [$($contextObj['AuthType'])]." - switch -Regex ($contextObj['AuthType']) { + switch -Regex ($($contextObj['AuthType'])) { 'PAT|UAT|IAT' { $viewer = Get-GitHubViewer -Context $contextObj $viewer | Out-String -Stream | ForEach-Object { Write-Verbose $_ }