Skip to content

Commit

Permalink
Create trufflehog.yml
Browse files Browse the repository at this point in the history
Adding trufflehog to scan the repository for secrets on all PRs.
  • Loading branch information
ThatStasGuy authored Feb 16, 2024
1 parent 224b261 commit 5c70746
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c70746

Please sign in to comment.