Skip to content

chore(deps): update pre-commit hook betterleaks/betterleaks to v1.8.1 - #45

Merged
rducom merged 1 commit into
mainfrom
renovate/betterleaks-betterleaks-1.x
Aug 24, 2026
Merged

rducom merged 1 commit into
mainfrom
renovate/betterleaks-betterleaks-1.x

Conversation

@renovate

@renovate renovate Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
betterleaks/betterleaks repository minor v1.7.4v1.8.1

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

betterleaks/betterleaks (betterleaks/betterleaks)

v1.8.1

Compare Source

What's New

Wow two big releases in a day!

  1. Added a validate command to let you re-validate findings without doing a rescan:

# Revalidate a known credential without running detection
printf '%s\n' "$GITHUB_TOKEN" | betterleaks validate --rule-id github-pat

# Print only its status (for example, VALID)
printf '%s\n' "$GITHUB_TOKEN" | betterleaks validate --rule-id github-pat --simple
  1. OOM issue fixed by @​gpflaum

Changelog

v1.8.0

Compare Source

What's New

More Generic Rules

Previously, generic-api-key also handled password-like identifiers. In v1.8.0, generic credential detection is separated into focused rules:

Rule Detects Confidence behavior
generic-api-key API keys, tokens, and other opaque machine secrets without a known provider Starts at low and can move to medium when stronger context is present
generic-password Hardcoded password assignments and passwords passed to authentication calls Starts at low and can move to medium when nearby identity or authentication context strengthens the finding
generic-credential-uri Passwords embedded in HTTP, database, messaging, directory, mail, FTP, and SSH URIs Starts at medium and drops to low for test, documentation, or example-like contexts

The password rule uses nearby authentication, connection, and username fields as supporting evidence. A hidden generic-username component supplies that context without producing standalone username findings.

The credential URI rule reports the embedded password rather than the entire URI. Provider-specific rules continue to take precedence when a more precise match is available.

Filter findings by confidence

Every bundled rule now assigns a low, medium, or high confidence level based on how strongly its pattern indicates a real secret.

Use the new --confidence flag to set the minimum level included in a scan:

betterleaks dir . --confidence medium

Suppressed findings are removed before live validation, so they do not generate validation requests or affect reports, finding counts, or exit codes.

Customize confidence

Custom rules can assign a static confidence level:

[[rules]]
id = "internal-api-key"
confidence = "low"
regex = '''...'''

Rule filters can also change confidence based on context using filter.setConfidence:

let level = hasStrongContext ? "medium" : "low";
let _ = filter.setConfidence(level);
false

It's a bit hacky and should be used sparingly, but it's better than not being able to update confidence in config.

Rules without an assigned confidence remain included when a confidence threshold is used, preserving compatibility with existing custom configurations.

More control over individual rules

This release also adds dedicated flags for disabling or isolating rules:

# Disable a noisy rule
betterleaks dir . --disable-rule generic-password

# Run only the generic rules
betterleaks dir . \
  --isolate-rule generic-api-key \
  --isolate-rule generic-password \
  --isolate-rule generic-credential-uri

Both flags are repeatable and also support -dr and -ir aliases. The existing --enable-rule flag remains available as a compatibility alias for --isolate-rule.

Other improvements

  • Added detection for GitLab incoming-mail address tokens.
  • Fixed incorrect finding column positions in file scans.
  • Improved handling of malformed compressed files.
  • Filtered a known deactivated Flickr token from the generic API-key rule.
  • Updated rule confidence classifications across the bundled rule set.
  • Updated the Go toolchain and dependencies.

Full changelog: v1.7.4...v1.8.0

Changelog


Configuration

📅 Schedule: (in timezone Europe/Paris)

  • Branch creation
    • "before 7am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from rducom as a code owner August 24, 2026 00:49
@rducom
rducom merged commit 135a58e into main Aug 24, 2026
9 of 11 checks passed
@rducom
rducom deleted the renovate/betterleaks-betterleaks-1.x branch August 24, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant