Skip to content

fix: trivy vex issue#1286

Merged
pohanhuang merged 2 commits into
harvester:masterfrom
pohanhuang:fix/trivy-action-vex
May 28, 2026
Merged

fix: trivy vex issue#1286
pohanhuang merged 2 commits into
harvester:masterfrom
pohanhuang:fix/trivy-action-vex

Conversation

@pohanhuang

Copy link
Copy Markdown
Contributor

Problem:

  • current trivy scan action will break, due to the download vex file broken

Solution:

  • old endpoint will not provide file any more, use lfs instead

Related Issue(s):

Test plan:

Additional documentation or context

Signed-off-by: pohanhuang <pohan.huang@suse.com>
Copilot AI review requested due to automatic review settings May 28, 2026 05:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Trivy scanning GitHub Actions workflow to avoid breakage caused by a previously broken VEX file download endpoint, switching to fetching the VEX report from GitHub-hosted LFS content and wiring it into Trivy.

Changes:

  • Update workflow triggers/runner and bump pinned GitHub Action revisions (checkout v4, upload-sarif v3).
  • Add a step to download Rancher’s VEX Hub report and configure Trivy to consume it via TRIVY_VEX.
  • Enable showing suppressed findings via TRIVY_SHOW_SUPPRESSED.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

build:
name: Build
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
Comment on lines +19 to +21
curl -fsSL -H "Accept: application/vnd.git-lfs+json" \
"https://media.githubusercontent.com/media/rancher/vexhub/main/reports/rancher.openvex.json" \
-o rancher.openvex.json
wheatdog
wheatdog previously approved these changes May 28, 2026
Signed-off-by: pohanhuang <pohan.huang@suse.com>
@pohanhuang

Copy link
Copy Markdown
Contributor Author

@mergify backport v1.8 v1.7

@mergify

mergify Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

backport v1.8 v1.7

✅ Backports have been created

Details

@pohanhuang pohanhuang merged commit 83e0a2e into harvester:master May 28, 2026
9 of 10 checks passed
Vicente-Cheng pushed a commit that referenced this pull request Jun 1, 2026
* fix: trivy vex issue

Signed-off-by: pohanhuang <pohan.huang@suse.com>

* fix: rollback to v**

Signed-off-by: pohanhuang <pohan.huang@suse.com>

---------

Signed-off-by: pohanhuang <pohan.huang@suse.com>
(cherry picked from commit 83e0a2e)
Vicente-Cheng pushed a commit that referenced this pull request Jun 1, 2026
* fix: trivy vex issue

Signed-off-by: pohanhuang <pohan.huang@suse.com>

* fix: rollback to v**

Signed-off-by: pohanhuang <pohan.huang@suse.com>

---------

Signed-off-by: pohanhuang <pohan.huang@suse.com>
(cherry picked from commit 83e0a2e)
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.

4 participants