Skip to content

Commit a780eb5

Browse files
authored
Merge pull request #35 from gitpod-samples/fix-github-cli-git-auth
Fix GitHub cli git auth
2 parents 365bd5d + 9865b2f commit a780eb5

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)