Skip to content

Broken GHE PAT  #9960

Closed
Closed

Description

@the-corp-mark

Description

Exact same issue as #7405 (comment), there is a regression somewhere.

How to replicate the issue + URL

Description

Validation of personal token in options page doesn't work for GitHub Enterprise, even if a valid token is inputed and it still shows as "Bad credentials":

Screenshot 2024-06-05 at 18 50 24

The cause seems to be the validation still (mistakenly) being done via api.github.com on GHE:

Screenshot 2024-06-05 at 18 51 38

However features that require a token do not work.

Extension version

26.8.8

Browser(s) used

.

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. fregante commented on Aug 10, 2026

    @fregante
    Member

    To clarify: the PAT works but the options page validation doesn't?

  2. the-corp-mark commented on Aug 10, 2026

    @the-corp-mark
    Author

    Yes correct. Sorry I was unclear.

  3. the-corp-mark commented on Aug 10, 2026

    @the-corp-mark
    Author
    Image

    Its making the request against github.com instead of the custom domain so auth fails.

    However, the features that require the token DO NOT work, so i guess its not exactly the same side effect, but root cause is the same....

  4. the-corp-mark commented on Aug 10, 2026

    @the-corp-mark
    Author

    However, the features that require the token DO NOT work, so i guess its not exactly the same side effect, but root cause is the same....

  5. changed the title [-]Regression: PAT not working for custom domain[/-] [+]Broken GHE PAT validation UI[/+] on Aug 10, 2026
  6. added
    meta
    small
    enterprise
    on Aug 10, 2026
  7. changed the title [-]Broken GHE PAT validation UI[/-] [+]Broken GHE PAT [/+] on Aug 10, 2026
  8. fregante commented on Aug 11, 2026

    @fregante
    Member

    Regardless of the failure in the options, the token still gets saved, right?

    If the token is actually saved and it's correct, can you check why the features are failing? Check what domain is being hit in the dev tools on your GHE instance.

    I already found the issue in the options page, but that PR does not affect the actual token storage and usage.

  9. the-corp-mark commented on Aug 11, 2026

    @the-corp-mark
    Author

    For example, on the main PR page, I cannot approve PRs anymore.

  10. the-corp-mark commented on Aug 11, 2026

    @the-corp-mark
    Author
    Image

    Only works on github.com

  11. fregante commented on Aug 11, 2026

    @fregante
    Member

    can you check why the features are failing? Check what domain is being hit in the dev tools on your GHE instance.

  12. the-corp-mark commented on Aug 11, 2026

    @the-corp-mark
    Author
    ElementNotFoundError: Expected element not found: a#prs-files-anchor-tab
        at $ (chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/assets/npm/select-dom.js:21:11)
        at isOldPrFiles (chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/assets/features/quick-review.js:27:28)
        at addButtons (chrome-extension://hlepfoohegkhhmjieoechaddaejaokhf/assets/features/quick-review.js:69:10)
    
  13. fregante commented on Aug 11, 2026

    @fregante
    Member

    That's an unrelated error:

    I want to see what domain is being hit in the Network tab, if it's still hitting api.github.com

  14. the-corp-mark commented on Aug 11, 2026

    @the-corp-mark
    Author

    I didnt see any requests going to github.com or any 403s

  15. fregante commented on Aug 11, 2026

    @fregante
    Member

    Unfortunately I don't use GHE so fixes rely on its users to debug and send PR

  16. the-corp-mark commented on Aug 11, 2026

    @the-corp-mark
    Author

    Does this repo have a Contributor license agreement?
    Also I guess what you said is in relation to #9937 since I see a PR for this issue.

  17. qasic commented on Aug 29, 2026

    @qasic

    @fregante I was wondering why the released version had GHE PAT issues, but one built from source did not.

    I can confirm your fix in #9967 works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugenterprisemetasmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions