id: gitlab-pipeline-triggertoken

info:
  name: GitLab Pipeline Trigger Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4a0a0047304502203f022463898de27e0304a268eaf742cbef9a2d82d6fcb3f83275be208ac4a5d6022100c3a783a2eeb715c125b18440bb9391f3925bfcbf6312580899647a3c753cfb26:922c64590222798bb761d5b6d8e72950