Source GitHub: Check command relies on Projects stream, which fails if projects are not enabled for specified repositories #5534
Labels
area/connectors
Connector related issues
connectors/source/github
connectors/sources-api
type/bug
Something isn't working
Milestone
Enviroment
Current Behavior
When I try setting up a GitHub source with a repository that doesn't have projects enabled, or my token doesn't have enough privileges, the check command fails because the GitHub API returns the corresponding error codes. https://docs.github.com/en/rest/reference/projects#list-repository-projects
I don't think the source should use a stream that depends on such conditions to validate the source config.
Expected Behavior
GitHub source should validate a config even these stream-specific conditions are not met.
Logs
If applicable, please upload the logs from the failing operation.
For sync jobs, you can download the full logs from the UI by going to the sync attempt page and
clicking the download logs button at the top right of the logs display window.
LOG
Steps to Reproduce
Are you willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered: