{
  "id": "sonarqube_token",
  "kind": "datatype",
  "status": "draft",
  "name": "SonarQube token",
  "doc": "Token of SonarQube Server used to run an analysis or call the web API instead of a login and password. Current tokens start with one of the prefixes squ_, sqa_ and sqp_, which depend on the token type (user, global analysis or project analysis token), followed by 40 characters. Older tokens without a prefix are not covered by the regexp.",
  "parent": "access_token",
  "is_pii": false,
  "categories": [
    "secrets"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^sq[uap]_[A-Za-z0-9=_-]{40}$",
  "examples": [
    {
      "value": "squ_example0example0example0example0example0",
      "description": "Constructed, non-functional value",
      "valid": true
    },
    {
      "value": "example0example0example0example0example0",
      "description": "No type prefix",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://docs.sonarsource.com/sonarqube-server/latest/user-guide/managing-tokens/"
    },
    {
      "type": "doc",
      "url": "https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partner-SonarQubeToken.html"
    },
    {
      "type": "other",
      "url": "https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml"
    }
  ],
  "detected_by": {
    "tools": [
      "gitleaks",
      "semgrep",
      "trufflehog"
    ]
  },
  "quality": {
    "score": 78,
    "missing": [
      "second example",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/sonarqube_token.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/sonarqube_token.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/sonarqube_token.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/sonarqube_token",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/sonarqube_token.json"
  }
}