ci(testbox): provision pinned TruffleHog (#112482)

* ci(testbox): provision pinned TruffleHog

* fix(ci): preserve existing TruffleHog bin directory

* test(ci): cover TruffleHog target routing
This commit is contained in:
Patrick Erichsen
2026-07-21 20:14:58 -07:00
committed by GitHub
parent d3430cae80
commit d4a9bbbe87
8 changed files with 319 additions and 4 deletions
@@ -11,6 +11,10 @@ inputs:
description: Whether to install Bun alongside Node.
required: false
default: "true"
install-trufflehog:
description: Whether to install the pinned TruffleHog binary for a reusable test environment.
required: false
default: "false"
install-deps:
description: Whether to run pnpm install after environment setup.
required: false
@@ -97,6 +101,11 @@ runs:
node-version: ${{ inputs.node-version }}
use-actions-cache: ${{ inputs.use-actions-cache }}
- name: Setup TruffleHog
if: inputs.install-trufflehog == 'true'
shell: bash
run: bash scripts/install-trufflehog.sh
- name: Validate sticky pnpm layout
if: inputs.sticky-disk == 'true'
shell: bash
@@ -91,6 +91,7 @@ jobs:
uses: ./.github/actions/setup-node-env
with:
install-bun: "false"
install-trufflehog: "true"
- name: Resolve release dist cache seeds
id: dist-cache-seeds
@@ -105,6 +105,7 @@ jobs:
uses: ./.github/actions/setup-node-env
with:
install-bun: "false"
install-trufflehog: "true"
- name: Prepare Testbox shell
shell: bash
run: |
+1
View File
@@ -97,6 +97,7 @@ jobs:
uses: ./.github/actions/setup-node-env
with:
install-bun: "false"
install-trufflehog: "true"
- name: Prepare Testbox shell
shell: bash
run: |