Title: install: retry without token when authenticated requests fail by devm33 · Pull Request #1968 · github/copilot-cli · GitHub
Open Graph Title: install: retry without token when authenticated requests fail by devm33 · Pull Request #1968 · github/copilot-cli
X Title: install: retry without token when authenticated requests fail by devm33 · Pull Request #1968 · github/copilot-cli
Description: Summary When a GITHUB_TOKEN is set but belongs to a GitHub org member whose token hasn't been SSO-authorized, SAML enforcement rejects the request — causing the install to fail even though the repo is public. This adds a download() helper that tries with the token first, then automatically retries without it on failure. The same retry logic is applied to the git ls-remote call used for prerelease version detection. Changes Added download() helper function that: Attempts the request with the auth token (stderr suppressed) On failure, prints a warning and retries without the token Reports curl/wget not found if neither is available Replaced inline curl/wget calls for tarball and checksums downloads with download() Added retry-without-auth fallback to git ls-remote for prerelease detection Behavior Scenario Result No GITHUB_TOKEN set Unauthenticated request (no change) Valid token Authenticated request succeeds on first try Token rejected (SAML/SSO) Warning printed, unauthenticated retry succeeds Token rejected + repo actually private Warning printed, unauthenticated retry also fails → error
Open Graph Description: Summary When a GITHUB_TOKEN is set but belongs to a GitHub org member whose token hasn't been SSO-authorized, SAML enforcement rejects the request — causing the install to fail even though the ...
X Description: Summary When a GITHUB_TOKEN is set but belongs to a GitHub org member whose token hasn't been SSO-authorized, SAML enforcement rejects the request — causing the install to fail even though ...
Opengraph URL: https://github.com/github/copilot-cli/pull/1968
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:96e79338-7333-cb3f-c105-45afb45394ed |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9B8C:1F8274:BDF744:C23A43:6A4DB958 |
| html-safe-nonce | 56d17388efd2bade5fcef1a7c88f2f2a97dcdb11d0d2d620df7b1f656e335703 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjhDOjFGODI3NDpCREY3NDQ6QzIzQTQzOjZBNERCOTU4IiwidmlzaXRvcl9pZCI6IjU0ODIzMjMyMzAyMzk2MDMwMzIiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 56098aaba28ae715569399f9248529ba9b35b496d46816404cc03dc169056b00 |
| hovercard-subject-tag | pull_request:3381524962 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/copilot-cli/pull/1968/files |
| twitter:image | https://avatars.githubusercontent.com/u/1682753?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1682753?s=400&v=4 |
| og:image:alt | Summary When a GITHUB_TOKEN is set but belongs to a GitHub org member whose token hasn't been SSO-authorized, SAML enforcement rejects the request — causing the install to fail even though the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/copilot-cli git https://github.com/github/copilot-cli.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 585860664 |
| octolytics-dimension-repository_nwo | github/copilot-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 585860664 |
| octolytics-dimension-repository_network_root_nwo | github/copilot-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width