Skip to content

Commit 2a27949

Browse files
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args (#47)
The v3 trufflehog action injects --fail automatically on pull_request events; passing it again here triggers "flag 'fail' cannot be repeated" and breaks every secret-scanner run. Aligns with hyperpolymath/rsr-template-repo#37.
1 parent 31a70f6 commit 2a27949

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
@@ -22,7 +22,9 @@ jobs:
2222
- name: TruffleHog Secret Scan
2323
uses: trufflesecurity/trufflehog@6961f2bace57ab32b23b3ba40f8f420f6bc7e004 # v3
2424
with:
25-
extra_args: --only-verified --fail
25+
# The v3 action injects --fail automatically on pull_request events.
26+
# Passing --fail here triggers "flag 'fail' cannot be repeated".
27+
extra_args: --only-verified
2628

2729
gitleaks:
2830
runs-on: ubuntu-latest
@@ -65,4 +67,4 @@ jobs:
6567
if [ $found -eq 1 ]; then
6668
echo "::error::Potential hardcoded secrets detected. Use environment variables instead."
6769
exit 1
68-
fi
70+
fi

0 commit comments

Comments
 (0)