From b7268a632a5722d68c205a87f813378c0cf885fd Mon Sep 17 00:00:00 2001 From: Carlo Costanzo <2160436+CCOSTAN@users.noreply.github.com> Date: Sat, 23 May 2026 15:37:11 -0400 Subject: [PATCH] Add TruffleHog secret scan workflow --- .github/workflows/secret-scan.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/secret-scan.yml diff --git a/.github/workflows/secret-scan.yml b/.github/workflows/secret-scan.yml new file mode 100644 index 00000000..8958f436 --- /dev/null +++ b/.github/workflows/secret-scan.yml @@ -0,0 +1,36 @@ +###################################################################### +# @CCOSTAN - Follow Me on X +# For more info visit https://www.vcloudinfo.com/click-here +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# ------------------------------------------------------------------- +# Secret Scan Workflow - TruffleHog credential leak detection. +# Runs verified-only secret scanning on pull requests, master pushes, +# and manual dispatch without adding local commit-hook friction. +# ------------------------------------------------------------------- +###################################################################### +name: Secret Scan + +on: + pull_request: + push: + branches: ["master"] + workflow_dispatch: + +permissions: + contents: read + +jobs: + trufflehog: + name: TruffleHog + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Scan for verified secrets + uses: trufflesecurity/trufflehog@v3.95.3 + with: + version: v3.95.3 + extra_args: --results=verified --force-skip-binaries --force-skip-archives \ No newline at end of file