From ecef864f521eb161377ef7f6a3a6487d47da0c93 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Tue, 7 Apr 2026 14:57:54 +0200 Subject: [PATCH] feat: support local .trufflehogignore --- .github/workflows/reusable-trufflehog.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/reusable-trufflehog.yml b/.github/workflows/reusable-trufflehog.yml index 91ac3096..91984495 100644 --- a/.github/workflows/reusable-trufflehog.yml +++ b/.github/workflows/reusable-trufflehog.yml @@ -98,6 +98,13 @@ jobs: path:grafana\.json$ EOF + if [[ -f ".trufflehogignore" ]]; then + echo "" >> /tmp/trufflehog-exclude.txt + echo "# Local .trufflehogignore" >> /tmp/trufflehog-exclude.txt + cat .trufflehogignore >> /tmp/trufflehog-exclude.txt + echo "Appended local .trufflehogignore" + fi + echo "Created global exclusion patterns:" cat /tmp/trufflehog-exclude.txt