Skip to content

Add trufflehog in gh-actions for scanning code files #33

@ParagEkbote

Description

@ParagEkbote

Why This Is Important

Security: Detects secrets, credentials, and sensitive information accidentally committed to the repository.
Automation: Ensures every push, pull request, or scheduled run automatically scans for leaks.


Tasks

  • Configure a new GitHub Actions workflow (.github/workflows/trufflehog.yml).
  • Install and run trufflehog against the repository codebase.
  • Set triggers for push and pull_request events.
  • Define exclusions (e.g., test data, mock files) if necessary.
  • Ensure scan results are surfaced in the Actions logs.
  • Optionally, configure alerts or fail builds when high-severity findings are detected.

Acceptance Criteria

  • A GitHub Actions workflow file exists with trufflehog integrated.
  • Workflow runs automatically on push and pull_request.
  • Sensitive data leaks (if any) are detected and reported in the logs.
    .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions