gh-dash
gh-dash copied to clipboard
[BUG] "Resource protected by organization SAML enforcement." when used on independent repository
Describe the bug When I try to use gh-dash on a repository owned by my personal account I'm getting an error related to SAML, while SAML is only required for repositories from one of the GitHub organizations that I'm a member of.
To Reproduce Steps to reproduce the behavior:
- Be part of an organization that enforces SAML
- Authenticate the GitHub CLI outside the enforced SAML
- Navigate to a local clone of a repository from your personal GitHub account
- Run
gh dash
(after having installed it, of course) - See error
YYYY/MM/DD HH:mm:SS Message: Resource protected by organization SAML enforcement. You must grant your OAuth token access to this organization., Locations: [{Line:1 Column:103}]
Expected behavior Using gh-dash on a repository without SAML requirements should work, even if the user is part of an organization that has SAML requirements.
Screenshots
Desktop (please complete the following information):
- OS: Ubuntu 20.04.4 LTS (64 bit)
I also have repos that are protected with SAML and everything works. I have both private repos (no SAML) and work related repos (with SAML) Wdym by this...?
Authenticate the GitHub CLI outside the enforced SAML
Wdym by this...?
Authenticate the GitHub CLI outside the enforced SAML
Running
gh auth login
Selecting the web authentication mechanism:
and when presented with:
Not "Authorize"-ing the (SAML) organization (instead clicking "Continue")
I removed some log.Fatal
s from the code, so this shouldn't crash the app anymore.
Just tested v3.6.0 and can confirm this fixed the problem, thanks! :+1: