Skip to content

Commit cd54206

Browse files
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args (#38)
Propagates the rsr-template-repo#37 fix: trufflehog v3 auto-injects `--fail` on `pull_request` events, so passing it again as `extra_args` produced `flag 'fail' cannot be repeated` and broke every secret-scanner run. Dropping the duplicate restores green secret-scanner CI on this repo.
1 parent 8cc804c commit cd54206

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
- name: TruffleHog Secret Scan
2626
uses: trufflesecurity/trufflehog@6c05c4a00b91aa542267d8e32a8254774799d68d # v3
2727
with:
28-
extra_args: --only-verified --fail
28+
# The v3 action injects --fail automatically on pull_request events.
29+
# Passing --fail here triggers "flag 'fail' cannot be repeated".
30+
extra_args: --only-verified
2931

3032
gitleaks:
3133
runs-on: ubuntu-latest
@@ -69,4 +71,4 @@ jobs:
6971
if [ $found -eq 1 ]; then
7072
echo "::error::Potential hardcoded secrets detected. Use environment variables instead."
7173
exit 1
72-
fi
74+
fi

0 commit comments

Comments
 (0)