Skip to content

Commit 95d22c9

Browse files
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args (#18)
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 11eee94 commit 95d22c9

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@6c05c4a00b91aa542267d8e32a8254774799d68d # 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)