Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- uses: trufflehog/actions/setup@17456cf5a9c8be7821b4dc568702b5f43650a8ad # was: @main
- run: trufflehog github --only-verified --no-update
env:
GH_TOKEN: \${{ github.token }}
- uses: trufflesecurity/trufflehog@75add79b929b263dae147d2e5bcf0daf292165cf
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push to main fails scan

Medium Severity

With push to main enabled, pinning base to the default branch and head to HEAD makes both refs the same commit after checkout. The TruffleHog action treats that as an empty range and exits with an error, so post-merge runs on main fail even when no secrets were introduced.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b8988ad. Configure here.

extra_args: --only-verified --fail --no-update
Loading