Yes, to test token validity, I created a token under my own account (I have full admin access to the instance, and the org/repo I am trying to sync).
I do see it being used for authentication when I try to sync.
The scope is correct.
We don't have SSO enabled.
I am able to use the token with curl to auth to graphql.
Accept: application/vnd.elasticsearch+json; compatible-with=8
Authorization: Basic
Connection: keep-alive
User-Agent: elastic-connectors-python-8.11.5.0
X-Elastic-Client-Meta: es=8.8.0,py=3.10.0,t=8.4.0,ai=3.8.6
< HTTP/1.1 200 OK
< Content-Length: 4498
< Content-Type: application/vnd.elasticsearch+json;compatible-with=8
< X-Elastic-Product: Elasticsearch
< {"_index":".elastic-connectors-v1","_id":"CONNECTOR_ID","_version":75,"_seq_no":76,"primary_term":3,"found":true,"source":{"api_key_id":"REDACTED","configuration":{"repositories":{"depends_on":[x],"display":"textarea","tooltip":"This configurable field is ignored when Advanced Sync Rules are used.","default_value":null,"label":"List of repositories","sensitive":false,"type":"list","required":true,"options":[],"validations":[],"value":"ORG_NAME/REPO_NAMEl","order":4,"ui_restrictions":[]},"ssl_ca":{"depends_on":[{"field":"ssl_enabled","value":true}],"display":"text","tooltip":null,"default_value":null,"label":"SSL certificate","sensitive":false,"type":"str","required":true,"options":[],"validations":[],"value":"","order":6,"ui_restrictions":[]},"ssl_enabled":{"depends_on":[],"display":"toggle","tooltip":null,"default_value":null,"label":"Enable SSL","sensitive":false,"type":"bool","required":true,"options":[],"validations":[],"value":false,"order":5,"ui_restrictions":[]},"retry_count":{"display_value":3,"depends_on":[],"display":"numeric","tooltip":null,"default_value":null,"label":"Maximum retries per request","sensitive":false,"type":"int","required":false,"options":[],"validations":[],"value":3,"order":7,"ui_restrictions":["advanced"]},"host":{"depends_on":[{"field":"data_source","value":"github_server"}],"display":"text","tooltip":null,"default_value":null,"label":"GitHub URL","sensitive":false,"type":"str","required":true,"options":[],"validations":[],"value":"OUR_ENTERPRISE_URL","order":2,"ui_restrictions":[]},"use_text_extraction_service":{"depends_on":[],"display":"toggle","tooltip":"Requires a separate deployment of the Elastic Text Extraction Service. Requires that pipeline settings disable text extraction.","default_value":null,"label":"Use text extraction service","sensitive":false,"type":"bool","required":true,"options":[],"validations":[],"value":false,"order":8,"ui_restrictions":["advanced"]},"data_source":{"depends_on":[],"display":"dropdown","tooltip":null,"default_value":null,"label":"GitHub data source","sensitive":false,"type":"str","required":true,"options":[{"label":"GitHub Cloud","value":"github_cloud"},{"label":"GitHub Server","value":"github_server"}],"validations":[],"value":"github_server","order":1,"ui_restrictions":[]},"token":{"depends_on":[],"display":"text","tooltip":null,"default_value":null,"label":"GitHub Token","sensitive":true,"type":"str","required":true,"options":[],"validations":[],"value":"TOKEN_THAT_IS_VALID","order":3,"ui_restrictions":[]}},"custom_scheduling":{},"description":null,"error":"AuthenticationException: AuthenticationException(401, 'None')","features":{"incremental_sync":{"enabled":false},"document_level_security":{"enabled":false},"sync_rules":{"advanced":{"enabled":true},"basic":{"enabled":true}}},"filtering":[{"active":{"advanced_snippet":{"created_at":"2024-01-23T16:29:13.830Z","updated_at":"2024-01-23T16:29:13.830Z","value":{}},"rules":[{"created_at":"2024-01-23T16:29:13.830Z","field":"","id":"DEFAULT","order":0,"policy":"include","rule":"regex","updated_at":"2024-01-23T16:29:13.830Z","value":".*"}],"validation":{"errors":[],"state":"valid"}},"domain":"DEFAULT","draft":{"advanced_snippet":{"created_at":"2024-01-23T16:29:13.830Z","updated_at":"2024-01-23T16:29:13.830Z","value":{}},"rules":[{"created_at":"2024-01-23T16:29:13.830Z","field":"","id":"DEFAULT","order":0,"policy":"include","rule":"regex","updated_at":"2024-01-23T16:29:13.830Z","value":".*"}],"validation":{"errors":,"state":"valid"}}}],"index_name":"search-github-metrics","is_native":false,"language":null,"last_access_control_sync_error":null,"last_access_control_sync_scheduled_at":null,"last_access_control_sync_status":null,"last_incremental_sync_scheduled_at":null,"last_seen":"2024-01-23T20:51:44.418136+00:00","last_sync_error":"AuthenticationException: AuthenticationException(401, 'None')","last_sync_scheduled_at":null,"last_sync_status":"error","last_synced":"2024-01-23T20:44:28.898207+00:00","name":"github-metrics","pipeline":{"extract_binary_content":true,"name":"ent-search-generic-ingestion","reduce_whitespace":true,"run_ml_inference":false},"scheduling":{"access_control":{"enabled":false,"interval":"0 0 0 * * ?"},"full":{"enabled":false,"interval":"0 0 0 * * ?"},"incremental":{"enabled":false,"interval":"0 0 0 * * ?"}},"service_type":"github","status":"error","sync_now":false,"last_indexed_document_count":0,"last_deleted_document_count":0}}