Skip to content

Commit 5f55dbd

Browse files
committed
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args
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 074f012 commit 5f55dbd

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)