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
This commit is contained in:
Pepe Fagoaga
2022-05-12 17:20:11 +02:00
committed by GitHub
parent 55640ecad2
commit 5fb39ea316

View File

@@ -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 }}
uses: trufflesecurity/trufflehog@v3.4.4
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD