Skip to content

Commit

Permalink
Create TruffleHog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ramireddy19971 authored Aug 1, 2024
1 parent b000968 commit 929ace0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/TruffleHog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Secret Scanning with TruffleHog

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
trufflehog-scan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install TruffleHog
run: pip install trufflehog

- name: Run TruffleHog scan
run: trufflehog filesystem --directory . --json > trufflehog-report.json

- name: Upload TruffleHog report
uses: actions/upload-artifact@v3
with:
name: trufflehog-report
path: trufflehog-report.json

0 comments on commit 929ace0

Please sign in to comment.