From 25d770837241cb17c47207a86676bb1598e005c1 Mon Sep 17 00:00:00 2001 From: Janakarajan Natarajan <68447808+janaknat@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:37:49 -0500 Subject: [PATCH] Add Trufflehog check for each PR This ensures no secrets are committed as part of a PR. --- .github/workflows/secrets.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/secrets.yml diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml new file mode 100644 index 00000000..1ab1c73f --- /dev/null +++ b/.github/workflows/secrets.yml @@ -0,0 +1,18 @@ +name: TruffleHog Secrets Scan + +on: [pull_request] +jobs: + TruffleHog: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: TruffleHog OSS + uses: trufflesecurity/trufflehog@main + with: + path: ./ + base: ${{ github.event.repository.default_branch }} + head: HEAD + extra_args: --debug --only-verified