-
Notifications
You must be signed in to change notification settings - Fork 1
PDP-684: Adding TruffleHog Scan Workflow #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a reusable TruffleHog secret scanning workflow to detect secrets in pull request changes. The workflow is integrated into the PR workflow template and supports optional file/folder exclusions.
Key changes:
- Added a new reusable workflow for TruffleHog secret scanning
- Integrated the TruffleHog scan job into the PR workflow template
- Implemented optional exclusion pattern support via
.trufflehog-excludefile
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| templates/pr-workflow.yml | Adds TruffleHog scan job to PR workflow template |
| .github/workflows/trufflehog-scan.yml | Creates reusable workflow for secret scanning with TruffleHog |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| echo "args=${ARGS}" >> "$GITHUB_OUTPUT" | ||
| - name: Secret Scanning | ||
| uses: trufflesecurity/trufflehog@main |
Copilot
AI
Dec 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using '@main' for the TruffleHog action is not recommended for production workflows as it may introduce breaking changes without notice. Consider pinning to a specific version or commit SHA for stability and reproducibility.
| uses: trufflesecurity/trufflehog@main | |
| uses: trufflesecurity/trufflehog@v3 |
Tested Reusable trufflehog scan workflow for secrets with test repo https://github.com/marklogic/copyrighttest/pull/36