Skip to content

Add comprehensive GitHub Copilot authentication documentation#175

Open
tserra30 with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-authentication-issue
Open

Add comprehensive GitHub Copilot authentication documentation#175
tserra30 with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-authentication-issue

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Users attempting to authenticate the Bridge addon with a classic PAT are confused about token configuration and mistakenly interpret the expected "auth probe failed" warning as an authentication failure. Documentation clarifies token setup, authentication methods, and distinguishes expected warnings from real errors.

Changes to README.md

New "GitHub Token & Authentication" section

  • When and where to configure tokens (Bridge addon config vs integration)
  • Copilot subscription requirement verification
  • Classic PAT requirements (copilot scope only)
  • Fine-grained PAT alternative with permissions guidance
  • PAT vs interactive login comparison
  • Token requirements checklist for self-diagnosis

Expanded "Authentication Errors" section

  • Bridge addon specific troubleshooting workflow
  • Token location and permission verification steps
  • How to distinguish expected warnings from real errors in add-on logs
  • Common runtime errors with context
  • When to switch between token types

New "About the 'auth probe failed' Warning" subsection

  • Explicitly clarifies: warning is expected and normal with token-only setups
  • Explains warning appears even with valid tokens (not just on issues)
  • Shows how to find actual errors in logs if server genuinely fails

Key messaging

Users will now understand:

  • Tokens go in add-on config only when using Bridge (not the integration)
  • "auth probe failed" is expected and harmless with PAT authentication
  • How to verify their setup is correct
  • Where to look for real authentication failures

Copilot AI added 3 commits June 24, 2026 03:01
- Add "GitHub Token & Authentication" section explaining:
  - When tokens are needed (Bridge vs Local CLI)
  - How to create tokens and verify subscriptions
  - Classic vs fine-grained PAT permissions and requirements
  - PAT vs interactive login authentication methods
  - Token configuration for Bridge add-on

- Expand "Authentication Errors" troubleshooting with:
  - Detailed steps for Bridge add-on authentication failures
  - Explanation of token permissions (classic and fine-grained)
  - How to check add-on logs for real errors
  - "auth probe failed" warning clarification (expected with PATs)
  - Guidance on when to try classic vs fine-grained PATs
  - Troubleshooting for local CLI mode

- Add token requirements checklist for users to self-diagnose

Addresses issue #130: User unable to authenticate with Bridge addon using classic PAT
- Remove unnecessary 'read:user' scope from classic PAT documentation
- Clarify that 'auth probe failed' warning appears even with valid tokens
- Make rate limit retry timing less specific
- Clarify 'even with valid tokens' for better readability
- Add specific timeframe for rate limit recovery guidance
Copilot AI changed the title [WIP] Fix authentication failure in Home Assistant Add comprehensive GitHub Copilot authentication documentation Jun 24, 2026
Copilot AI requested a review from tserra30 June 24, 2026 03:08
@tserra30 tserra30 marked this pull request as ready for review June 24, 2026 03:09
Copilot AI review requested due to automatic review settings June 24, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Home Assistant integration documentation to reduce user confusion around authenticating the GitHub Copilot Bridge add-on, especially clarifying expected “auth probe failed” warnings vs real authentication failures.

Changes:

  • Adds a new “GitHub Token & Authentication” section explaining token placement for Bridge vs local CLI mode, token types, and a self-diagnosis checklist.
  • Expands “Authentication Errors” troubleshooting with Bridge add-on–specific steps and an “auth probe failed” explanation.

Comment thread README.md
Comment on lines +141 to +142
- **With Bridge add-on**: Configure token in the add-on's `github_token` field only (NOT in the integration)
- **Local CLI mode** (no Bridge): Configure token in the integration's GitHub Token field
Comment thread README.md
Comment on lines +188 to +190
- Configure your GitHub token **only** in the add-on's `github_token` field (Settings → Add-ons → GitHub Copilot Bridge → Configuration)
- The integration does **not** ask for or store a token when using the Bridge add-on
- The bridge server handles all authentication on its own
Comment thread README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants