Skip to content

Commit 365bd5d

Browse files
authored
Merge pull request #19 from gitpod-samples/gh-integration
fix: add gh auth
2 parents 7162d56 + 86e6236 commit 365bd5d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"installGitLFS": true,
1010
"installGithubCli": true
1111
},
12+
"ghcr.io/devcontainers/features/github-cli:1": { },
1213
"ghcr.io/devcontainers/features/node:1": {
1314
"version": "18",
1415
"nodeGypDependencies": true

.devcontainer/setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ if [ -d "/workspaces/gitpodflix-demo/backend/catalog" ]; then
7070
fi
7171

7272
echo "✅ Setup completed successfully!"
73+
74+
if [ -n "$GH_CLI_TOKEN" ]; then
75+
gh auth login --with-token <<< "$GH_CLI_TOKEN"
76+
else
77+
echo "GH_CLI_TOKEN not set, skipping authentication"
78+
fi

0 commit comments

Comments
 (0)