Skip to content

Commit 90ddf15

Browse files
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args (#19)
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 ecf7387 commit 90ddf15

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

2628
gitleaks:
2729
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)