Skip to content

chore(secret-leak): bump betterleaks v1.6.1 to v1.7.0 - #110

Merged
dkastl merged 1 commit into
mainfrom
chore/betterleaks-v1.7.0
Aug 3, 2026
Merged

chore(secret-leak): bump betterleaks v1.6.1 to v1.7.0#110
dkastl merged 1 commit into
mainfrom
chore/betterleaks-v1.7.0

Conversation

@dkastl

@dkastl dkastl commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What

Bumps the default betterleaks image in reusable-secret-leak-check.yml from v1.6.1 to v1.7.0.

-  # v1.6.1
-  default: "ghcr.io/betterleaks/betterleaks@sha256:7a43a20d...c5291f1"
+  # v1.7.0
+  default: "ghcr.io/betterleaks/betterleaks@sha256:bca7945a...cbe0b33f"

What is in v1.7.0

  • default ruleset grows from 325 rules to 412 (87 new detectors; 187 now carry validation, up from 106)
  • the generic rule now filters public-by-design credentials that reach no sensitive data or privileged operations
  • support for quoted and escaped values in --log-opts
  • scan times down 8.6% to 37.1%
  • no config-schema change

Why this needed testing before pinning

The schema is not the risk. The 87 new detectors are. This workflow gates pull requests across every enrolled repo, so a version that starts producing findings fails everyone's CI at once, and the failures would look unrelated to whatever change is under review.

Verified locally, v1.6.1 against v1.7.0:

Check v1.6.1 v1.7.0
canonical base config parses yes yes
audit [extend] overlay parses (base + disabledRules) yes yes
scan: datastore tree (284334 bytes) no leaks no leaks
scan: sitestore tree (375521 bytes) no leaks no leaks
scan: n8n tree (141879 bytes) no leaks no leaks

Byte counts are identical across versions, so both scanned the same surface. Trees were exported with git archive HEAD so only tracked files were scanned.

The [extend] overlay matters specifically: the weekly audit layers disabledRules = ["generic-api-key"] on top of the fetched base, and that is the part most likely to break on a config change.

Pin detail

Pinned to the index digest, matching the existing pin. Note that docker image inspect after a --platform linux/amd64 pull returns the platform-specific manifest digest (sha256:06d60954...) rather than the index digest. Using that would work on the amd64 runners but silently break any non-amd64 caller.

Follow-up

The weekly audit in the operations repo pins the same digest independently and needs the matching bump. That is a separate PR.

Summary by CodeRabbit

  • Chores
    • Updated the default secret leak detection tool to a newer, pinned version.
    • Improved the reliability and security of automated secret scanning.

Upstream release tracked in the operations tracker.

v1.7.0 grows the default ruleset from 325 rules to 412 (87 new detectors, 187
now carrying validation), and the generic rule starts filtering
public-by-design credentials that reach no sensitive data. There is no
config-schema change, and scan times drop across the board.

The risk in this bump is not the schema, it is the 87 new detectors: this
workflow gates pull requests across every enrolled repo, so a version that
starts reporting new findings fails everyone's CI at once. Verified before
pinning, comparing v1.6.1 against v1.7.0:

  * the canonical org base config parses on both
  * the audit [extend] overlay (base + disabledRules) parses on both
  * scans of three real repo trees produce byte-identical coverage and no
    findings on either version

Pinned to the index digest, matching the previous pin, so the reference stays
valid on non-amd64 runners.
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 95ff4a50-7cc6-4ba0-9216-7fc4a713a714

📥 Commits

Reviewing files that changed from the base of the PR and between 5d463bd and 7c286d5.

📒 Files selected for processing (1)
  • .github/workflows/reusable-secret-leak-check.yml

Walkthrough

The reusable secret leak check workflow updates its default Betterleaks container image from the pinned v1.6.1 digest to the pinned v1.7.0 digest.

Changes

Betterleaks image update

Layer / File(s) Summary
Update Betterleaks workflow default
.github/workflows/reusable-secret-leak-check.yml
The betterleaks-image input now defaults to the pinned Betterleaks v1.7.0 image digest.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • geolonia/.github#103: Both PRs update the betterleaks-image default in the reusable secret leak check workflow.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Betterleaks version bump and matches the main change.
Description check ✅ Passed The description clearly covers the image bump, rationale, testing, digest choice, and follow-up, although it uses different headings from the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/betterleaks-v1.7.0

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🛡️ Security suite

Check Result
✅ Supply chain · bumblebee No exposure matches
✅ Secrets · betterleaks No secrets in diff
✅ Action pinning · pinact All actions pinned
✅ Actions audit · zizmor No findings

Note

All security checks passed.

Updated for 7c286d5 · workflow run

@dkastl
dkastl marked this pull request as ready for review August 3, 2026 05:59
@dkastl
dkastl merged commit a7f7ab9 into main Aug 3, 2026
6 checks passed
@dkastl
dkastl deleted the chore/betterleaks-v1.7.0 branch August 3, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant