Skip to content

feat: Make trufflehog check advisory and comment findings on PR - #43

Merged
AkshithaRajavelDev merged 1 commit into
mainfrom
trufflehog-advisory-pr-comment
Oct 27, 2026
Merged

AkshithaRajavelDev merged 1 commit into
mainfrom
trufflehog-advisory-pr-comment

Conversation

@AkshithaRajavelDev

Copy link
Copy Markdown
Contributor

Trufflehog has been reporting many false positives since it was re-enabled. This makes the trufflehog step non-blocking and reports findings as a formatted PR comment instead, while we look into reducing noise or alternatives.

The check now collects all findings (deduplicated) rather than stopping at the first one, and writes a markdown table with detector, location, commit and verification status. Raw secret values are never included. A single comment is created and then updated in place on later pushes.

https://app.devrev.ai/devrev/issue/SECOP-241

Summary

Related Issues

  • work-item:

Type of Change

  • Change doesn't affect products or customers
  • Bug fix (non-breaking change which fixes an issue)
  • Non-breaking change (the new functionality and code refactor do not require a migration strategy)
  • Breaking change (fix or feature that will require a migration plan for data or other services)
  • Documentation/comment update
  • Other (please describe):

Testing Procedure

Checklist

  • I used generative AI to generate this PR
  • I have self-reviewed my code for clarity and correctness
  • I have added or updated comments for complex or non-obvious logic in my code
  • I have updated relevant documentation (e.g., README, code docs)
  • My changes do not introduce new warnings or errors
  • I have added or updated tests to cover new or changed functionality
  • All tests pass locally with my changes applied

Trufflehog has been reporting many false positives since it was
re-enabled. This makes the trufflehog step non-blocking and reports
findings as a formatted PR comment instead, while we look into reducing
noise or alternatives.

The check now collects all findings (deduplicated) rather than stopping
at the first one, and writes a markdown table with detector, location,
commit and verification status. Raw secret values are never included.
A single comment is created and then updated in place on later pushes.

https://app.devrev.ai/devrev/issue/SECOP-241

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@devrev-jo devrev-jo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@AkshithaRajavelDev
AkshithaRajavelDev merged commit 98f5f47 into main Oct 27, 2026
5 checks passed
@AkshithaRajavelDev
AkshithaRajavelDev deleted the trufflehog-advisory-pr-comment branch October 27, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants