From 5fb39ea316f622e9c0896607ffabb0d533a9e11b Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Thu, 12 May 2022 17:20:11 +0200 Subject: [PATCH] fix(actions): Trigger on PR (#1136) * fix(actions): Include checkout * fix(actions): version name * fix(actions): fix branch * fix(actions): version name * fix(actions): PR trigger --- .github/workflows/find-secrets.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/find-secrets.yml b/.github/workflows/find-secrets.yml index 9ac8f3f1..f5166d3e 100644 --- a/.github/workflows/find-secrets.yml +++ b/.github/workflows/find-secrets.yml @@ -1,14 +1,18 @@ -name: linters +name: find-secrets -on: [push] +on: pull_request -env: - - TRUFFLEHOG_VERSION: v3.4.4 - jobs: trufflehog: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@${{ env.TRUFFLEHOG_VERSION }} - \ No newline at end of file + uses: trufflesecurity/trufflehog@v3.4.4 + with: + path: ./ + base: ${{ github.event.repository.default_branch }} + head: HEAD