Skip to contents

Runs a locally installed Gitleaks executable against a temporary text file. No network call is made by this adapter. The temporary file and report are removed on exit.

Usage

gitleaks_provider(
  command = "gitleaks",
  config = NULL,
  on_error = c("block", "skip"),
  timeout_seconds = 30,
  show_stats = FALSE
)

Arguments

command

Scalar Gitleaks executable path or command name.

config

Optional scalar path to a Gitleaks configuration file.

on_error

Whether adapter failures create a blocking finding or warn and skip the adapter.

timeout_seconds

Positive process timeout in seconds.

show_stats

Show construction time and available usage metrics.

Value

A shieldr_provider for scanner_options().

Examples

gitleaks <- gitleaks_provider()