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