Skip to content

Commit 43d0508

Browse files
committed
Scope gh auth check to github.com only
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 03e7697 commit 43d0508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tracer/tools/AzureDevOpsHelpers.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ GitHub CLI (gh) not found.
250250

251251
# 6. GitHub CLI authenticated
252252
if ($hasGh) {
253-
$null = & gh auth status 2>$null
253+
$null = & gh auth status --hostname github.com 2>$null
254254
if ($LASTEXITCODE -ne 0) {
255255
$errors += @"
256-
GitHub CLI is not authenticated.
257-
Run: gh auth login
256+
GitHub CLI is not authenticated for github.com.
257+
Run: gh auth login --hostname github.com
258258
"@
259259
}
260260
}

0 commit comments

Comments
 (0)