Skip to content

chore(ci): fix Trivy scanner param and runner#572

Closed
DerekRoberts wants to merge 1 commit intomainfrom
chore/ci/fix-trivy-scanner
Closed

chore(ci): fix Trivy scanner param and runner#572
DerekRoberts wants to merge 1 commit intomainfrom
chore/ci/fix-trivy-scanner

Conversation

@DerekRoberts
Copy link
Member

@DerekRoberts DerekRoberts commented Mar 3, 2026

  • Change scanners from vuln,secret,config to vuln,secret,misconfig (correct scanner name)\n- Change runner from ubuntu-24.04 to ubuntu-latest to fix Trivy binary download failures

Thanks for the PR!

Any successful deployments (not always required) will be available below.
API available
Frontend available

Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow

@DerekRoberts DerekRoberts requested a review from mishraomp as a code owner March 3, 2026 02:57
Copilot AI review requested due to automatic review settings March 3, 2026 02:57
@DerekRoberts DerekRoberts deleted the chore/ci/fix-trivy-scanner branch March 3, 2026 02:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the CI security analysis workflow to correct Trivy scanner configuration and adjust the GitHub Actions runner selection to address Trivy execution/download issues.

Changes:

  • Update Trivy scanners value from config to misconfig.
  • Change the job runner from ubuntu-24.04 to ubuntu-latest.

name: Trivy Security Scan
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

Using ubuntu-latest makes the workflow non-deterministic because the underlying Ubuntu version changes over time and may already resolve to 24.04, which would not address the reported Trivy download issue. If the goal is to avoid 24.04, consider pinning to a known-good runner image (e.g., ubuntu-22.04) and keep runner versions consistent with other workflows in this repo that are explicitly pinned (e.g., .github/workflows/merge.yml, .github/workflows/.tests.yml).

Suggested change
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

Copilot uses AI. Check for mistakes.
@github-project-automation github-project-automation bot moved this from New to Done in DevOps (NR) Mar 3, 2026
@DerekRoberts DerekRoberts self-assigned this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants