{
  "id": "gitlab_pat",
  "kind": "datatype",
  "status": "draft",
  "name": "GitLab personal access token",
  "doc": "Personal access token of GitLab, which authenticates a user to the GitLab API and to Git over HTTPS. GitLab gives these tokens the prefix glpat-. The classic form has 20 more characters; the newer routable form is longer and ends with a dot and a nine-character suffix. Examples are left out because GitHub push protection rejects token-shaped values, even constructed ones.",
  "parent": "access_token",
  "is_pii": false,
  "categories": [
    "secrets"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^glpat-(?:[A-Za-z0-9_-]{20}|[A-Za-z0-9_-]{27,300}\\.[0-9a-z]{2}[0-9a-z]{7})$",
  "examples": [
    {
      "value": "glpat-ExampleToken",
      "description": "Too short",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://docs.gitlab.com/security/tokens/"
    },
    {
      "type": "other",
      "url": "https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml"
    }
  ],
  "detected_by": {
    "tools": [
      "detectsecrets",
      "gitleaks",
      "nightfall",
      "semgrep",
      "trufflehog"
    ]
  },
  "quality": {
    "score": 70,
    "missing": [
      "examples",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/gitlab_pat.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/gitlab_pat.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/gitlab_pat.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/gitlab_pat",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/gitlab_pat.json"
  }
}