Skip to content

secret-scanner.yml: trufflehog 3.95.x emits duplicate --fail; remove from extra_args #51

Description

@hyperpolymath

Problem

In hyperpolymath/volumod, the Secret Scanner workflow fails when bumped to trufflesecurity/trufflehog@v3.95.3:

trufflehog: error: flag 'fail' cannot be repeated, try --help
##[error]Process completed with exit code 1.

secret-scanner.yml passes extra_args: --only-verified --fail. In trufflehog action v3.95.x the entrypoint now appends its own --fail, producing duplicate flags. Upstream's CLI is strict and rejects.

(Older pins of the same action ignored the duplicate; the regression appears between the previous pinned version and 3.95.3.)

Impact

Fix

Remove --fail from extra_args in .github/workflows/secret-scanner.yml:

- name: TruffleHog Secret Scan
  uses: trufflesecurity/trufflehog@<sha> # v3
  with:
    extra_args: --only-verified

The action emits a non-zero exit on verified findings on its own (in 3.95+); we don't need to pass --fail.

Apply the same fix in hyperpolymath/standards/.github/workflows/secret-scanner.yml (template source) so other repos pick it up on next sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions