fix(github): preserve indeterminate auth discovery

This commit is contained in:
Brennan Benson
2026-08-16 20:22:48 -07:00
parent 2a5e6096f7
commit 817ae277e5
3 changed files with 43 additions and 12 deletions
@@ -183,6 +183,22 @@ describe('resolveGitHubRepoExecution', () => {
})
describe('origin repository cache', () => {
it('keeps an indeterminate auth inventory unverifiable during candidate discovery', async () => {
getEnterpriseGitHubRepoSlugMock.mockResolvedValue(undefined)
await expect(
getGitHubApiRepositoryForRemote(
'/remote/repo',
'origin',
'ssh-1',
{},
{
requireVerifiedSshProbe: true
}
)
).rejects.toThrow('GitHub repository identity is unverifiable.')
})
it('does not reuse a tolerant SSH miss for verified candidate discovery', async () => {
const enterprise = {
owner: 'acme',