Skip to content

Add new ValidateToken method to GitHub & GitLab sources, and use it as a fast-path when hitting syncExternalService

Warren Gifford requested to merge source-validate-token into main

Created by: arussellsaw

ref #18740 (closed)

The reason we weren't seeing errors for bad tokens was that we were trying to list repos when nothing was configured, so we succeeded in listing nothing. This adds a new ValidateToken method that tries to pull info for the authenticated user.

Paired with @ryanslade & @indradhanush

Merge request reports

Loading