Skip to content

repo-updater: Handle revoked tokens

Administrator requested to merge handle-revoked-tokens into main

Created by: ryanslade

With this change we now detect when syncing fails due to revoked tokens or other permission related errors.

In this failure mode, we treat the sync as successfully returning zero repos as the code host connection no longer has access to any repos.

In order to make this work we updated our errcode package to handle multierror.

We also ensure that awscodecommit and gitolite return errors that implement the errcode.unauthorizeder interface.

Closes: https://github.com/sourcegraph/sourcegraph/issues/15739

Merge request reports

Loading