Stop excluding the trufflehog postgres detector - #6921
Merged
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Member
|
lgtm. checked on my side, nothing postgres-shaped anywhere on main ( One thing: this and #6920 touch the same line, and once both land your call |
qgallouedec
approved these changes
Aug 25, 2026
Member
Author
|
It was just a one-line Git conflict resolution. Sorry, I was still sleepy when merging and forgot the comment. 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR re-enables the
postgresdetector in the secret scanning workflow.Reverts the exclusion added in #3192.
Motivation
The exclusion is the oldest thing in this workflow, added in March 2025 with the comment "exclude buggy postgres detector that is causing false positives and not relevant to our codebase". It was adapted from the
text-generation-inferenceworkflow rather than diagnosed here, so unlike thelobexclusion there is no record of a specific false positive that it was suppressing in this repository, and no way to check whether the upstream bug that motivated it still exists.Since then the scanner has moved from an unpinned
mainto v3.97.0. Rather than keep carrying an exclusion whose justification cannot be reconstructed, this checks whether it is still needed.Solution
Scanning the full history of
mainwith the currently pinned scanner and no exclusions at all reports nothing:That is 3426 commits, the same scope as our weekly full-history sweep, so the detector finds nothing to report anywhere in the repository, not just in the current tree. The harness was sanity-checked against a synthetic secret that the scanner does report, so the clean result reflects detectors running and finding nothing rather than a scan that covered nothing.
This is weaker evidence than for
lob, where the upstream fix can be pointed at directly. Here the argument is only that the detector is currently silent across the whole history. If it turns out to produce false positives on some future commit, the exclusion can be restored with an actual example attached, which is a better state than an exclusion nobody can justify.Changes
postgresfrom--exclude-detectorsNote
#6920 removes
lobfrom the same list. The two touch the same line, so whichever merges second needs a rebase, and at that point--exclude-detectorsbecomes empty and should be dropped along with the comment introducing it.Note
Low Risk
CI-only TruffleHog flag change with no app or auth impact; main risk is future postgres-detector false positives failing the workflow.
Overview
Re-enables the TruffleHog
postgressecret detector in the GitHub Actions secret-leaks workflow by dropping--exclude-detectors=postgresfromextra_args. Scanning still uses--results=verified,unknownand--fail-on-scan-errorson the pinned v3.97.0 image.This reverses a long-standing exclusion that was copied from another project without a documented false positive in this repo. Full-history validation with the current pin reportedly finds no postgres hits, so the workflow now runs that detector again; if noise shows up later, the exclusion can be restored with a concrete example.
Reviewed by Cursor Bugbot for commit 949a4d2. Bugbot is set up for automated code reviews on this repo. Configure here.