Skip to content

Persist gh cli authentication across container rebuilds#67

Merged
sei-jbooz merged 4 commits intomainfrom
persist-gh-auth
Apr 15, 2026
Merged

Persist gh cli authentication across container rebuilds#67
sei-jbooz merged 4 commits intomainfrom
persist-gh-auth

Conversation

@sei-jbooz
Copy link
Copy Markdown
Contributor

@sei-jbooz sei-jbooz commented Apr 9, 2026

  1. Adds Docker Volume to persist gh cli credentials across container rebuilds. Prevents the need to regularly re-auth
  2. Fixes the GitHub MCP "Failed to authenticate" error that appears when launching Claude Code by reusing gh cli creds for the MCP

@sei-jbooz sei-jbooz requested a review from a team as a code owner April 9, 2026 14:43
- Fixes error where the GitHub MCP fails to authenticate
Comment thread .devcontainer/Dockerfile
EOF
# Export GitHub token from gh CLI for MCP server auth
RUN echo '' >> /home/vscode/.zshrc && \
Copy link
Copy Markdown
Contributor

@sei-aschlackman sei-aschlackman Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only work the second time you build after you log in with the gh with the first build?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The creds will just be blank if you haven't auth'd yet. Should not result in any failures.

@sei-jbooz sei-jbooz merged commit 78859fd into main Apr 15, 2026
1 check passed
@sei-jbooz sei-jbooz deleted the persist-gh-auth branch April 15, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants