Skip to content

Commit e6b930d

Browse files
committed
ci(secret-scanner): drop duplicate --fail from trufflehog extra_args
1 parent 950d628 commit e6b930d

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@ef6e76c3c4023279497fab4721ffa071a722fd05 # 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)