Skip to content

ci: pin Trivy version to v0.69.3 to fix failing install#256

Merged
david-waltermire merged 1 commit intometaschema-framework:developfrom
david-waltermire:fix/trivy-install-version
Apr 23, 2026
Merged

ci: pin Trivy version to v0.69.3 to fix failing install#256
david-waltermire merged 1 commit intometaschema-framework:developfrom
david-waltermire:fix/trivy-install-version

Conversation

@david-waltermire
Copy link
Copy Markdown
Contributor

@david-waltermire david-waltermire commented Apr 22, 2026

Summary

The Code CI job has been failing on dependabot PRs since late March because the Trivy install step exits with code 1 during setup. The aquasecurity/trivy-action defaults to installing Trivy v0.65.0, but release artifacts for older Trivy versions were removed upstream, so contrib/install.sh can no longer fetch them.

This pins version: v0.69.3 on the trivy-action invocation so install.sh targets a release whose assets are still published.

Changes

  • .github/workflows/build.yml — add version: 'v0.69.3' to the Trivy step, with a comment linking to the upstream discussion.

References

Test Plan

Summary by CodeRabbit

  • Chores
    • Enhanced security scanning by explicitly specifying a pinned version of the security tool in the build process, ensuring consistency and reproducibility of security checks across releases.

The aquasecurity/trivy-action defaults to installing Trivy v0.65.0,
but release artifacts for older Trivy versions were removed upstream,
causing contrib/install.sh to exit with code 1 during setup. This has
been blocking the Code CI job since late March on dependabot PRs.

Pin the version to v0.69.3, whose release assets are still available.

Refs: https://github.com/aquasecurity/trivy/discussions/10265
Refs: aquasecurity/setup-trivy#30
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1bbcdc57-9822-4be3-822b-a515e6dc4427

📥 Commits

Reviewing files that changed from the base of the PR and between 45f1daf and d241b3f.

📒 Files selected for processing (1)
  • .github/workflows/build.yml

📝 Walkthrough

Walkthrough

The build workflow configuration now explicitly pins the Trivy security scanner to version v0.69.3 via the aquasecurity/trivy-action parameter, replacing implicit reliance on the action's default version for filesystem vulnerability scanning.

Changes

Cohort / File(s) Summary
CI Workflow Configuration
.github/workflows/build.yml
Pinned Trivy engine version to v0.69.3 in the aquasecurity/trivy-action step to ensure consistent vulnerability scanning across builds.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Poem

🐰 A version pinned down with care,
No more surprises in the air,
Trivy scans with steady hand,
v0.69.3 is now planned!
Security builds on solid ground,
Consistency is what we've found. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: pinning Trivy version to v0.69.3 to resolve installation failures in CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@david-waltermire david-waltermire merged commit 18e8483 into metaschema-framework:develop Apr 23, 2026
6 checks passed
@david-waltermire david-waltermire deleted the fix/trivy-install-version branch April 23, 2026 05:31
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.

1 participant