Skip to content

chore: trufflehog secrets scan + action SHA pins#43

Merged
KooshaPari merged 1 commit into
mainfrom
chore/add-trufflehog
May 2, 2026
Merged

chore: trufflehog secrets scan + action SHA pins#43
KooshaPari merged 1 commit into
mainfrom
chore/add-trufflehog

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented May 2, 2026

User description

Chore: adds Trufflehog workflow, pins all actions to SHA.

Note

Low Risk
Workflow-only change that pins actions/checkout to a specific commit for supply-chain hardening; low risk aside from potential CI breakage if the pinned SHA is incompatible.

Overview
Pins actions/checkout to commit 11bd719... in the codeql.yml and trufflehog.yml GitHub Actions workflows, replacing the floating @v4 reference to improve supply-chain integrity.

Reviewed by Cursor Bugbot for commit b146451. Bugbot is set up for automated code reviews on this repo. Configure here.


CodeAnt-AI Description

Pin repository checkout in security scan workflows

What Changed

  • The CodeQL and Trufflehog workflows now check out the repository from a fixed commit instead of a floating action version
  • Security scan runs are less exposed to upstream action changes during CI

Impact

✅ Lower supply-chain risk in CI
✅ More consistent security scans
✅ Fewer unexpected CI failures from upstream updates

🔄 Retrigger CodeAnt AI Review

Details

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

* chore: pin actions to immutable SHA

* ci: expand pytest to full test suite + ruff lint gate

- Replace single-file smoke test run with full `pytest tests/ -q --tb=short`
- Add `ruff check .` and `ruff format --check .` gates
- Consolidate pip install into one step for ruff + pytest

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

* chore: pin all GitHub Actions to commit SHAs

Pins all GitHub Actions to immutable commit SHAs.

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 2, 2026 03:33
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 2, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 2, 2026

Warning

Rate limit exceeded

@KooshaPari has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 37 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 492e96f0-1d09-4b72-a968-dd9def2f53bb

📥 Commits

Reviewing files that changed from the base of the PR and between d402f98 and b146451.

📒 Files selected for processing (2)
  • .github/workflows/codeql.yml
  • .github/workflows/trufflehog.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/add-trufflehog
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/add-trufflehog

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 5 minutes and 37 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@KooshaPari KooshaPari merged commit 3f84fbf into main May 2, 2026
19 of 36 checks passed
@KooshaPari KooshaPari deleted the chore/add-trufflehog branch May 2, 2026 03:33
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 2, 2026

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label May 2, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 2, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit b146451. Configure here.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trufflehog action not pinned to SHA

Medium Severity

The trufflehog/actions/setup@main action in this newly added workflow is referenced by a mutable branch (@main) instead of a pinned SHA commit hash. This contradicts the PR's stated goal of pinning all actions to SHA for supply chain security. A compromised main branch of that action repository could execute arbitrary code in CI.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b146451. Configure here.

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CodeQL actions left unpinned despite PR goal

Medium Severity

The PR pins actions/checkout to a SHA in this file but leaves three github/codeql-action/*@v4 references unpinned in the same workflow. Since the PR's stated goal is to pin all actions to SHA, these were likely overlooked. The mutable @v4 tag carries the same supply chain risk the PR aims to eliminate.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b146451. Configure here.

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Inconsistent checkout SHA differs from rest of repo

Low Severity

This PR pins actions/checkout to SHA 11bd71901bbe5b1630ceea73d27597364c9af683 (v4.2.2), but every other workflow in the repo consistently uses 34e114876b0b11c390a56381ad16ebd13914f8d5 (with a # v4 comment). Using a different, older SHA creates an inconsistency that complicates future bulk updates and may cause subtle behavioral differences between workflows.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b146451. Configure here.

@KooshaPari KooshaPari review requested due to automatic review settings May 2, 2026 03:53
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 5, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

Sequence Diagram

This diagram shows how the trufflehog and CodeQL GitHub Actions workflows now use a pinned checkout commit before running their respective security scans, improving CI stability and supply-chain safety.

sequenceDiagram
    participant GitHub
    participant TrufflehogWorkflow
    participant CodeQLWorkflow
    participant CheckoutAction

    GitHub->>TrufflehogWorkflow: Trigger trufflehog job
    TrufflehogWorkflow->>CheckoutAction: Checkout repo with pinned commit
    TrufflehogWorkflow->>TrufflehogWorkflow: Run trufflehog scan

    GitHub->>CodeQLWorkflow: Trigger CodeQL job
    CodeQLWorkflow->>CheckoutAction: Checkout repo with pinned commit
    CodeQLWorkflow->>CodeQLWorkflow: Run CodeQL analysis
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 7, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 7, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 7, 2026

Sequence Diagram

This PR ensures the trufflehog secret scan and CodeQL analysis workflows both use a pinned checkout action, stabilizing repository access for CI security scans.

sequenceDiagram
    participant Developer
    participant GitHubActions as GitHub Actions
    participant Repo
    participant Trufflehog
    participant CodeQL

    Developer->>GitHubActions: Push or open pull request
    GitHubActions->>Repo: Checkout code with pinned action

    GitHubActions->>Trufflehog: Run secret scan workflow
    Trufflehog-->>GitHubActions: Secret scan results

    GitHubActions->>CodeQL: Run code analysis workflow
    CodeQL-->>GitHubActions: CodeQL security report
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 7, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 8, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

Sequence Diagram

This PR updates the Trufflehog and CodeQL GitHub Actions workflows so that repository checkout uses a fixed action version before running security scans.

sequenceDiagram
    participant Developer
    participant Actions
    participant Checkout
    participant Trufflehog
    participant CodeQL

    Developer->>Actions: Push or open pull request
    Actions->>Checkout: Checkout repository with pinned action version
    Checkout-->>Actions: Source code available
    Actions->>Trufflehog: Run secret scanning workflow
    Actions->>CodeQL: Run code analysis workflow
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 8, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

Sequence Diagram

This PR updates the CodeQL and Trufflehog GitHub Actions workflows so they both use a pinned checkout action version before running their respective security scans.

sequenceDiagram
    participant Dev
    participant CI
    participant CodeQL
    participant Trufflehog

    Dev->>CI: Push changes or open pull request
    CI->>CodeQL: Trigger CodeQL security workflow
    CodeQL->>CodeQL: Checkout repository with pinned checkout action
    CodeQL->>CodeQL: Run CodeQL analysis

    CI->>Trufflehog: Trigger Trufflehog secrets workflow
    Trufflehog->>Trufflehog: Checkout repository with pinned checkout action
    Trufflehog->>Trufflehog: Scan repository for secrets
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 8, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 9, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

Sequence Diagram

This PR hardens the CodeQL and Trufflehog CI workflows by pinning the repository checkout step to a specific actions/checkout commit, ensuring consistent and trustworthy security scans on each run.

sequenceDiagram
    participant Developer
    participant CI
    participant CodeQL
    participant Trufflehog

    Developer->>CI: Push code or open pull request
    CI->>CI: Start CodeQL workflow
    CI->>CI: Checkout repository with pinned checkout commit
    CI->>CodeQL: Run code analysis
    CI->>CI: Start Trufflehog workflow
    CI->>CI: Checkout repository with pinned checkout commit
    CI->>Trufflehog: Run secrets scan
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 9, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

Sequence Diagram

This PR updates the CodeQL and Trufflehog GitHub Actions workflows so they check out the repository using a pinned checkout action commit, improving supply-chain safety and consistency of security scans.

sequenceDiagram
    participant Developer
    participant GitHub
    participant CodeQLWorkflow as CodeQL workflow
    participant TrufflehogWorkflow as Trufflehog workflow

    Developer->>GitHub: Push or pull request
    GitHub->>CodeQLWorkflow: Trigger CodeQL analysis job
    CodeQLWorkflow->>CodeQLWorkflow: Checkout repo with pinned checkout action
    CodeQLWorkflow->>CodeQLWorkflow: Initialize and run CodeQL scan
    GitHub->>TrufflehogWorkflow: Trigger Trufflehog scan job
    TrufflehogWorkflow->>TrufflehogWorkflow: Checkout repo with pinned checkout action
    TrufflehogWorkflow->>TrufflehogWorkflow: Setup and run Trufflehog secret scan
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 9, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

Sequence Diagram

This PR updates the trufflehog and CodeQL workflows so that both security scans check out the code using a pinned checkout action commit, reducing supply-chain risk while keeping the scan flows the same.

sequenceDiagram
    participant Developer
    participant GitHubCI
    participant PinnedCheckout
    participant TrufflehogScan
    participant CodeQLScan

    Developer->>GitHubCI: Push or open pull request
    GitHubCI->>PinnedCheckout: Checkout repo for trufflehog with pinned action
    PinnedCheckout-->>GitHubCI: Repository workspace
    GitHubCI->>TrufflehogScan: Run secrets scan
    TrufflehogScan-->>GitHubCI: Secrets scan results
    GitHubCI->>PinnedCheckout: Checkout repo for CodeQL with pinned action
    PinnedCheckout-->>GitHubCI: Repository workspace
    GitHubCI->>CodeQLScan: Run code analysis
    CodeQLScan-->>GitHubCI: Security analysis report
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 9, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant