From 7ec364e8bbcbd97a79463233f22a2ea0bda55b68 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 12 May 2026 23:00:42 +0200 Subject: [PATCH] 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. --- .github/workflows/secret-scanner.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index 72d2f22..acd86c7 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -21,7 +21,9 @@ jobs: - name: TruffleHog Secret Scan uses: trufflesecurity/trufflehog@8a8ef8526528d8a4ff3e2c90be08e25ef8efbd9b # v3 with: - extra_args: --only-verified --fail + # The v3 action injects --fail automatically on pull_request events. + # Passing --fail here triggers "flag 'fail' cannot be repeated". + extra_args: --only-verified gitleaks: runs-on: ubuntu-latest @@ -65,4 +67,4 @@ jobs: if [ $found -eq 1 ]; then echo "::error::Potential hardcoded secrets detected. Use environment variables instead." exit 1 - fi + fi \ No newline at end of file