01- Run TruffleHog Security Scan #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 01- Run TruffleHog Security Scan | |
on: | |
workflow_dispatch: | |
jobs: | |
trufflehog_scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Secret Scanning | |
uses: trufflesecurity/trufflehog@main | |
with: | |
extra_args: "--version " | |
- name: Install TruffleHog | |
run: | | |
python -m pip install --upgrade pip | |
pip install trufflehog | |
- name: Save TruffleHog Report to JSON file | |
run: | | |
trufflehog git --json https://github.com/${{ github.repository }} > trufflehog_report.json | |
- name: Upload TruffleHog Report | |
uses: actions/[email protected] | |
with: | |
name: trufflehog-report | |
path: trufflehog_report.json |