Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/trufflehog-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Trufflehog Security Scan
on:
push:
branches:
- main
pull_request:
workflow_call:
permissions: write-all
jobs:
initialize:
name: Initialize
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Nodejs
uses: actions/setup-node@v3


trufflehog-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Installing trufflehog
run: |
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
- name: Run Trufflehog
run: |
git branch
git status
trufflehog git file://. --since-commit HEAD --only-verified --fail