From 5c707465c9b11fa576208e04c2c78b7fb09a838d Mon Sep 17 00:00:00 2001 From: Stas Uschakow <150824261+ThatStasGuy@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:37:38 +0100 Subject: [PATCH] Create trufflehog.yml Adding trufflehog to scan the repository for secrets on all PRs. --- .github/workflows/trufflehog.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/trufflehog.yml diff --git a/.github/workflows/trufflehog.yml b/.github/workflows/trufflehog.yml new file mode 100644 index 0000000..662a317 --- /dev/null +++ b/.github/workflows/trufflehog.yml @@ -0,0 +1,27 @@ +name: TruffleHog +on: [pull_request] +jobs: + TruffleHog: + name: TruffleHog + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: TruffleHog OSS + id: trufflehog + uses: trufflesecurity/trufflehog@main + continue-on-error: true + with: + path: ./ + base: "${{ github.event.repository.default_branch }}" + head: HEAD +# extra_args: --debug + - name: Scan Results Status + if: steps.trufflehog.outcome == 'failure' + run: exit 1