format_version: 1
name: sourcegraph
display_name: Sourcegraph Cody
tier: 7
last_verified: "2026-04-05"
keywords:
  - "sourcegraph"
  - "cody"
  - "SRC_ACCESS_TOKEN"
  - "SOURCEGRAPH_TOKEN"
  - "sourcegraph.com"
  - "sgp_"
patterns:
  - regex: 'sgp_[A-Fa-f0-9]{16,}_[A-Fa-f0-9]{40}'
    entropy_min: 4.0
    confidence: high
  - regex: 'sgp_[A-Fa-f0-9]{40}'
    entropy_min: 4.0
    confidence: medium
verify:
  method: GET
  url: https://sourcegraph.com/.api/graphql
  headers:
    Authorization: "token {KEY}"
  valid_status: [200]
  invalid_status: [401, 403]
