Skip to content

Commit d49a712

Browse files
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args (#108)
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 e6f2dbd commit d49a712

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
@@ -20,7 +20,9 @@ jobs:
2020
- name: TruffleHog Secret Scan
2121
uses: trufflesecurity/trufflehog@17456f8c7d042d8c82c9a8ca9e937231f9f42e26 # v3
2222
with:
23-
extra_args: --only-verified --fail
23+
# The v3 action injects --fail automatically on pull_request events.
24+
# Passing --fail here triggers "flag 'fail' cannot be repeated".
25+
extra_args: --only-verified
2426

2527
gitleaks:
2628
runs-on: ubuntu-latest
@@ -64,4 +66,4 @@ jobs:
6466
if [ $found -eq 1 ]; then
6567
echo "::error::Potential hardcoded secrets detected. Use environment variables instead."
6668
exit 1
67-
fi
69+
fi

0 commit comments

Comments
 (0)