Skip to content

Commit 7c566dc

Browse files
committed
fix: silently fail if no token
1 parent 0eee3c4 commit 7c566dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.devcontainer/setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,8 @@ fi
7171

7272
echo "✅ Setup completed successfully!"
7373

74-
gh auth login --with-token $GH_TOKEN
74+
if [ -n "$GH_TOKEN" ]; then
75+
gh auth login --with-token <<< "$GH_TOKEN"
76+
else
77+
echo "GH_TOKEN not set, skipping authentication"
78+
fi

0 commit comments

Comments
 (0)