Skip to content

LS-GL-001: GitLab Personal Token

Severity HIGH
Blast radius Source code and CI/CD compromise
Rotate at https://gitlab.com/-/user_settings/personal_access_tokens
--verify GET https://gitlab.com/api/v4/user

If this leaks

Grants API access to every project and group the token's scopes allow, including private repository contents and CI/CD variables.

What to do

  1. Rotate or revoke the credential at https://gitlab.com/-/user_settings/personal_access_tokens.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

glpat-[A-Za-z0-9\-_]{20}

Suppress

On one line: # leakscan:ignore LS-GL-001. For the whole project:

disable_rules: [LS-GL-001]