gitleaks/gitleaks

Create rule for SourceGraph tokens

Open

#1.697 geöffnet am 15. Jan. 2025

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (2.048 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (26.970 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 17h) (2 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe. Detect SourceGraph access tokens, which have a distinct format.

Describe the solution you'd like An overview of the syntaxes are available here: https://github.com/trufflesecurity/trufflehog/pull/2254#issue-2053456642

Describe alternatives you've considered N/A

Additional context I encountered a SourceGraph token in the following format. While , was added as an operator to generic-api-key in #1679, this was not detected due to the newline between the comma and the prefix (TOKEN).

    environment(
        "CODY_INTEGRATION_TEST_TOKEN",
        "sgp_******_******")

cc @zricethezav

Contributor Guide