Skip to content

Commit 738e9bd

Browse files
committed
Fix GitHub CLI git authentication setup
Add gh auth setup-git to devcontainer setup script to ensure git operations use GitHub CLI credentials, preventing auth conflicts.
1 parent 8c57e72 commit 738e9bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.devcontainer/setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ echo "✅ Setup completed successfully!"
7373

7474
if [ -n "$GH_CLI_TOKEN" ]; then
7575
gh auth login --with-token <<< "$GH_CLI_TOKEN"
76+
# Configure git to use GitHub CLI credentials
77+
gh auth setup-git
7678
else
7779
echo "GH_CLI_TOKEN not set, skipping authentication"
78-
fi
80+
fi

0 commit comments

Comments
 (0)