Private repositories: complete repository lists, clone errors that say why, and a token check.
Upgrade notes
- No database migrations or new configuration fields.
POST /v1/insightsandPOST /v1/services/:id/insights/refreshanswer 400repo_unreachableorbranch_not_foundwhen the repository cannot be cloned. The first answered 500 and the refresh route answered 404 before.GET /v1/sources/:id/testreturnstokenKind,scopesandwarningsfor GitHub sources. These fields are additive.
Fixed
- Git source repository lists stopped at the provider's first page (100 repositories, most recently updated first), so older private repositories never appeared. Lists now follow GitHub
Link, GitLabX-Next-Pageand Bitbucketnextpagination up to 10 pages (1000 repositories). Later pages reuse the fixed API URL, so the token is never sent to a provider-supplied URL, and truncation is reported. - Analysing a repository the selected credential cannot clone answered "Internal Server Error". The answer now names a reason: authentication failed, HTTP 403 (permission denied), not found or no access, could not resolve/connect, or TLS/host-key verification failed. For GitHub tokens it adds advice: classic tokens need the
reposcope, and fine-grained tokens need the repository selected, Contents: Read-only, and organization approval or SSO authorization. git's output, URL credentials and the token never appear in the message.
Added
- Sources: a "Test token" button shows the login, the GitHub token type, a classic token's scopes, and warnings when private repositories cannot be listed or cloned.
- The Deploy Wizard explains, next to the repository picker, why a repository may be missing from a GitHub source.