Skip to content

Platform flag seems to do nothing #1764

@isuftin

Description

@isuftin

Describe the bug
The --platform flag seems to not have any effect

To Reproduce
Use the --platform flag in the detect command, get Unknown SCM platform. Use --platform to include links in findings. host=your-git.server

Expected behavior
I expect the platform flag to be used by the utility

Screenshots

gitleaks detect --verbose --platform gitlab --log-level debug

    ○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

9:47AM DBG using github.com/wasilibs/go-re2 regex engine
9:47AM DBG using existing gitleaks config .gitleaks.toml from `(--source)/.gitleaks.toml`
9:47AM DBG extending config with default config
9:47AM INF Unknown SCM platform. Use --platform to include links in findings. host=my-gitlab.server
9:47AM DBG executing: /opt/homebrew/bin/git -C . log -p -U0 --full-history --all
9:47AM INF 1165 commits scanned.
9:47AM DBG Note: this number might be smaller than expected due to commits with no additions
9:47AM INF scanned ~3146284 bytes (3.15 MB) in 475ms
9:47AM INF no leaks found

Basic Info (please complete the following information):

  • OS:
sw_vers
ProductName:		macOS
ProductVersion:		14.7.2
BuildVersion:		23H311
  • Gitleaks Version:
gitleaks --version
gitleaks version 8.24.0

Additional context

This doesn't seem to be getting in the way of anything but it also doesn't seem to be a flag that is used during execution?

cc @zricethezav

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions