Skip to content

Scan

pipeleek gl snippets scan

Scan GitLab snippets for secrets

Synopsis

Scan snippet contents for secrets.

By default, all snippets visible to the provided token are scanned, including public ones. Use --repo to limit to a single repository or --namespace to scan repositories in a namespace.

pipeleek gl snippets scan [flags]

Examples

1
2
3
4
5
6
7
8
# Scan all snippets visible to the token
pipeleek gl snippets scan --token glpat-xxxxxxxxxxx --url https://gitlab.example.com

# Scan snippets for one repository
pipeleek gl snippets scan --token glpat-xxxxxxxxxxx --url https://gitlab.example.com --repo mygroup/myproject

# Scan snippets of repositories in a namespace
pipeleek gl snippets scan --token glpat-xxxxxxxxxxx --url https://gitlab.example.com --namespace mygroup

Options

      --confidence strings     Filter for confidence level, separate by comma if multiple. See readme for more info.
  -h, --help                   help for scan
      --hit-timeout duration   Maximum time to wait for hit detection per scan item (e.g., 30s, 2m, 1h) (default 1m0s)
  -m, --member                 Scan projects the user is member of
  -n, --namespace string       Namespace to scan (all namespace repositories and subgroup repositories)
  -o, --owned                  Scan only user owned repositories
  -r, --repo string            Single repository to scan, format: namespace/repo
  -s, --search string          Query string for searching repositories
      --secrets-verification   Verify supported credentials with their providers (enabled by default, disable with --secrets-verification=false) (default true)
      --threads int            Number of concurrent threads for scanning (default 4)
      --webui                  Serve a local web UI for live findings on 127.0.0.1 with a random token

Options inherited from parent commands

      --color                   Enable colored log output (auto-disabled when using --logfile) (default true)
      --config string           Config file path. Example: ~/.config/pipeleek/pipeleek.yaml
      --http-timeout duration   HTTP request timeout, e.g. 30s or 2m (default: no timeout)
      --ignore-proxy            Ignore HTTP_PROXY environment variable
      --json                    Use JSON as log output format
      --log-level string        Set log level globally (debug, info, warn, error). Example: --log-level=warn
  -l, --logfile string          Log output to a file
      --proxy string            Proxy URL, e.g. http://127.0.0.1:8080 or socks5://127.0.0.1:1080 (takes precedence over HTTP_PROXY)
      --tls-verification        Enable TLS certificate verification (by default verification is skipped to support self-signed certificates)
  -t, --token string            GitLab API Token
  -u, --url string              GitLab instance URL
  -v, --verbose                 Enable debug logging (shortcut for --log-level=debug)

SEE ALSO