Skip to content

Update Trivy action version to v0.35.0#80

Merged
ruivieira merged 1 commit intomainfrom
tarilabs-patch-1
Mar 23, 2026
Merged

Update Trivy action version to v0.35.0#80
ruivieira merged 1 commit intomainfrom
tarilabs-patch-1

Conversation

@tarilabs
Copy link
Member

@tarilabs tarilabs commented Mar 22, 2026

Summary by Sourcery

CI:

  • Bump aquasecurity/trivy-action from version 0.28.0 to the commit corresponding to v0.35.0 across the security-scan workflow.

Summary by CodeRabbit

  • Chores
    • Updated security scanning workflow configuration for internal infrastructure maintenance.

Note: This release contains no user-facing changes.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 22, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the GitHub Actions security scan workflow to use a pinned commit of Trivy action v0.35.0 instead of the older v0.28.0 across all Trivy steps, maintaining all existing scan configuration.

File-Level Changes

Change Details Files
Bump Trivy GitHub Action from v0.28.0 to a pinned commit corresponding to v0.35.0 across all security scanning steps in the workflow.
  • Update the Trivy filesystem scan step to use aquasecurity/trivy-action pinned at commit 57a97c7e7821a5776cebc9bb87c984fa69cba8f1 (v0.35.0).
  • Update the Trivy configuration scan step to use the same pinned commit for v0.35.0.
  • Update the human-readable vulnerability report generation step to use the pinned v0.35.0 commit.
  • Update the repository-wide Trivy scan and the repository security report steps to the pinned v0.35.0 commit.
  • Preserve all existing Trivy inputs (scan-type, scan-ref, format, output, severity, scanners, etc.) unchanged while updating only the action reference.
.github/workflows/security-scan.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9ff132b6-590c-4a53-9bf7-c51ca1c2031b

📥 Commits

Reviewing files that changed from the base of the PR and between e8e6c40 and f62b73c.

📒 Files selected for processing (1)
  • .github/workflows/security-scan.yaml

📝 Walkthrough

Walkthrough

Updated GitHub Actions workflow to pin the Trivy security scanner action from version 0.28.0 to a specific commit hash referencing v0.35.0 across all scan steps. Added trailing newline to the workflow file.

Changes

Cohort / File(s) Summary
Trivy Action Version Update
.github/workflows/security-scan.yaml
Pinned aquasecurity/trivy-action from @0.28.0 to commit hash @57a97c7e7821a5776cebc9bb87c984fa69cba8f1 (# v0.35.0) across filesystem vulnerability scan, filesystem configuration scan, vulnerability reporting, and repository scanning steps. Added trailing newline to file.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 With whiskers twitching, I've pinned the way,
Trivy version updated to save the day!
From 0.28 to v0.35's embrace,
Security scans now run with grace! 🔒

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Update Trivy action version to v0.35.0' directly and clearly summarizes the main change in the pull request, which is updating the aquasecurity/trivy-action from v0.28.0 to v0.35.0 across multiple workflow steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tarilabs-patch-1

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

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

Tip

CodeRabbit can generate a title for your PR based on the changes.

Add @coderabbitai placeholder anywhere in the title of your PR and CodeRabbit will replace it with a title based on the changes in the PR. You can change the placeholder by changing the reviews.auto_title_placeholder setting.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • Consider defining the Trivy action SHA/version once (e.g., via a YAML anchor or environment variable) and reusing it across all steps to avoid duplication and make future updates easier.
  • The workflow file is missing a trailing newline at the end; adding it will avoid the No newline at end of file marker and keep formatting consistent with typical POSIX text file conventions.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider defining the Trivy action SHA/version once (e.g., via a YAML anchor or environment variable) and reusing it across all steps to avoid duplication and make future updates easier.
- The workflow file is missing a trailing newline at the end; adding it will avoid the `No newline at end of file` marker and keep formatting consistent with typical POSIX text file conventions.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@ruivieira ruivieira merged commit f8b7588 into main Mar 23, 2026
8 checks passed
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.

3 participants