Skip to content

Commit

Permalink
šŸ©¹ [Patch]: Refactor GitHub context setup to improve clarity in authenā€¦
Browse files Browse the repository at this point in the history
ā€¦tication handling
  • Loading branch information
MariusStorhaug committed Jan 16, 2025
1 parent 335ed28 commit 6c916b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/functions/private/Auth/Context/Set-GitHubContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ function Set-GitHubContext {
Set-Context -ID "$($script:GitHub.Config.ID)/$($contextObj['Name'])" -Context $contextObj
if ($Default) {
Set-GitHubDefaultContext -Context $contextObj['Name']
if ($contextObj['AuthType'] -eq 'IAT' -and $script:GitHub.EnvironmentType -eq 'GHA') {
Set-GitHubGitConfig -Context $contextObj['Name']
}
}
if ($contextObj['AuthType'] -eq 'IAT' -and $script:GitHub.EnvironmentType -eq 'GHA') {
Set-GitHubGitConfig -Context $contextObj['Name']
}
if ($PassThru) {
Get-GitHubContext -Context $($contextObj['Name'])
Expand Down

0 comments on commit 6c916b9

Please sign in to comment.