Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdaf03f8

Browse files
committed
set gh token outside workspace if gh is logged in
1 parentcb9f2d1 commitdaf03f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎scripts/lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ gh_auth() {
144144
GITHUB_TOKEN=$(coder external-auth access-token github)
145145
export GITHUB_TOKEN
146146
fi
147+
elif token="$(gh auth token --hostname github.com2>/dev/null)";then
148+
export GITHUB_TOKEN=$token
147149
else
148150
log"Please authenticate gh CLI by running 'gh auth login'"
149151
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp