Fix pre-commit pipeline: replace broken trivy installation with apt-based install#2420
Merged
Fix pre-commit pipeline: replace broken trivy installation with apt-based install#2420
Conversation
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix precommit failing due to trivy installation
Fix pre-commit pipeline: replace broken trivy .deb download with setup-trivy action
Mar 1, 2026
Collaborator
|
@copilot trivy now fails in https://github.com/OWASP/wrongsecrets/actions/runs/22538017615/job/65288823560?pr=2420 with: |
Co-authored-by: commjoen <1457214+commjoen@users.noreply.github.com>
Contributor
Author
... The Fixed in commit |
Copilot
AI
changed the title
Fix pre-commit pipeline: replace broken trivy .deb download with setup-trivy action
Fix pre-commit pipeline: replace broken trivy installation with apt-based install
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pre-commit pipeline was failing because trivy v0.58.0 didn't exist as a GitHub release (404), and the
aquasecurity/setup-trivy@v0.2.5action (used as an intermediate fix) also failed because it hardcodes a commit SHA inaquasecurity/trivythat no longer exists (75c4dc0f45c5d7ffd05ae26df1e0c666787bdf2a).Changes
pre-commit.yml: Replace trivy installation with a direct apt-based install from Aqua Security's official apt repository (aquasecurity.github.io/trivy-repo). This avoids all dependency on theaquasecurity/trivygit repository or its GitHub releases. TheTRIVY_VERSIONenv var is removed since the apt repo always provides the latest version:renovate.json: Remove the trivy custom manager since there is no longer a pinned version string in the workflow to track.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.