Skip to content

fix(secrets-scan): Docker-free TruffleHog (pinned binary) for nix runners#49

Merged
Jess Sullivan (Jesssullivan) merged 1 commit into
mainfrom
fix/secrets-scan-dockerless-trufflehog
Jun 2, 2026
Merged

fix(secrets-scan): Docker-free TruffleHog (pinned binary) for nix runners#49
Jess Sullivan (Jesssullivan) merged 1 commit into
mainfrom
fix/secrets-scan-dockerless-trufflehog

Conversation

@Jesssullivan

Copy link
Copy Markdown
Contributor

Problem

The secrets-scan composite action's TruffleHog step used trufflesecurity/trufflehog@main — a Docker container action. On Docker-less self-hosted runners (the tinyland nix compute pool) it fails immediately:

failed to connect to the docker API at unix:///var/run/docker.sock; ... no such file or directory
##[error]Process completed with exit code 1.

That reds the whole secrets-scan lane and every downstream needs: [secrets-scan] job (lint, test) — observed on canon-megatank-reset PR #24 (check + test showed "skipping").

Fix

Install the pinned trufflehog binary and scan git history directly — mirroring the gitleaks binary install already in the same action. New optional trufflehog-version input (default 3.95.3). The gitleaks half and the findings_count output are unchanged; --only-verified default + --fail semantics preserved.

Validation

  • just check green locally (internal-refs resolve, gitleaks clean).
  • Docker-free: no container, no daemon dependency.

Releases as v2.2.0 (new optional input → MINOR). Also carries the already-merged, previously-unreleased js-bazel-package changes sitting on main.

trufflesecurity/trufflehog@main is a container action and fails on
Docker-less self-hosted runners (the tinyland nix compute pool) with
"failed to connect to the docker API at unix:///var/run/docker.sock",
taking the secrets-scan lane and its downstream needs: jobs red.

Install the pinned trufflehog binary (new optional trufflehog-version
input, default 3.95.3) and scan git history directly, mirroring the
gitleaks binary install in the same action. gitleaks half and the
findings_count output are unchanged. Prep v2.2.0.
@Jesssullivan Jess Sullivan (Jesssullivan) force-pushed the fix/secrets-scan-dockerless-trufflehog branch from 6a64ce4 to 868bd7b Compare June 2, 2026 03:27
@Jesssullivan Jess Sullivan (Jesssullivan) merged commit 700ab24 into main Jun 2, 2026
1 of 2 checks passed
@Jesssullivan Jess Sullivan (Jesssullivan) deleted the fix/secrets-scan-dockerless-trufflehog branch June 2, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant