From cd306884e3c6a7f34d9b32d21c309103d0314669 Mon Sep 17 00:00:00 2001 From: Sahil Bansal Date: Wed, 13 Aug 2025 15:49:12 +0530 Subject: [PATCH] add trufflehog secret scan CI (#63) --- .github/workflows/secret_scan.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..09fb5f5 --- /dev/null +++ b/.github/workflows/secret_scan.yml @@ -0,0 +1,24 @@ +name: Secrets Scan +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + trufflehog: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout Source + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 + with: + fetch-depth: "0" + - name: TruffleHog OSS + uses: trufflesecurity/trufflehog@8b6f55b592e46ac44a42dc3e3dee0ebcc0f56df5 + with: + path: ./ + base: ${{ github.event.pull_request.base.sha }} + head: ${{ github.event.pull_request.head.sha }}