From 929ace08835820b85fda13a06a1cf6854b083246 Mon Sep 17 00:00:00 2001 From: ramireddy19971 Date: Thu, 1 Aug 2024 13:31:21 +0530 Subject: [PATCH] Create TruffleHog.yml --- .github/workflows/TruffleHog.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/TruffleHog.yml diff --git a/.github/workflows/TruffleHog.yml b/.github/workflows/TruffleHog.yml new file mode 100644 index 00000000000..7be9f8a9f94 --- /dev/null +++ b/.github/workflows/TruffleHog.yml @@ -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