id: gitlab-pipeline-triggertoken

info:
  name: GitLab Pipeline Trigger Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/gitlab.yml
    - https://docs.gitlab.com/ee/ci/triggers/
    - https://gitlab.com/gitlab-org/gitlab/-/issues/371396
    - https://gitlab.com/gitlab-org/gitlab/-/issues/388379
  metadata:
    verified: true
  tags: keys,file,gitlab,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(glptt-[0-9a-f]{40})\b'
# digest: 4a0a004730450221009f8587305bd37059003f98a03b3a4fb08554e7c55fb150e5249cfe781256cb6402204e476b41b35cd5414cd1efd62745e35ab7ac37b81fdefa666e5f4e84be22b1c5:922c64590222798bb761d5b6d8e72950