Skip to content

Fix TruffleHog scan range for pushes and manual runs - #198

Merged
manojnks merged 1 commit into
developfrom
fix-trufflehog-base-head
Dec 2, 2026
Merged

manojnks merged 1 commit into
developfrom
fix-trufflehog-base-head

Conversation

@manojnks

@manojnks manojnks commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

trufflehog-git-secrets-scan passes base: develop and head: HEAD on every event. On a manual run or a push to develop, both resolve to the same commit, so the action exits with "BASE and HEAD commits are the same" and every build job that needs it is skipped. That blocks the signed workflow_dispatch build (run 46937596911), which has to run from develop because the signer role trusts only that branch.

This passes base/head only on pull_request. For pushes and manual runs both are empty, so the action uses its event-based range: before..after for pushes, and the full branch for workflow_dispatch. Pull request scans are unchanged.

@manojnks manojnks self-assigned this Dec 2, 2026
@manojnks
manojnks merged commit 0b2bf49 into develop Dec 2, 2026
6 of 12 checks passed
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