Skip to content

Stabilize Trivy Code Scanning alert identity #2499

Open

Description

@josecelano

Problem

The Security Scan workflow scans a different image name depending on the trigger: scheduled runs pull torrust/tracker:develop, while push and pull-request runs build torrust-tracker:local. Trivy uses the image name as the alert location (torrust/tracker vs library/torrust-tracker), and both runs upload to the same SARIF category on develop.

Each time the trigger type changes, GitHub marks every Trivy alert of the previous series as fixed and opens or reopens a duplicate alert under another number. No package changed.

Reproduced on 2026-10-08: the push run for 554c47f67 marked 31 torrust/tracker alerts fixed at 16:55:43Z and reopened 31 library/torrust-tracker alerts with the same CVE ids and packages.

Impact

This is not an exploitable vulnerability; it is a CI defect in the evidence pipeline for runtime findings.

Expected

One stable alert per CVE and package for every trigger. Do not split triggers into separate SARIF categories, which would keep both duplicate series open.

Plan

  1. Use one image reference for every trigger.
  2. After merge, verify that a scheduled run and a push run leave every Trivy alert number and state unchanged.
  3. Reconcile the duplicate series and update the GitHub Security catalog.

Spec: docs/issues/open/2499-stabilize-trivy-code-scanning-alert-identity/ISSUE.md, delivered through PR #2498.

Related to #2493

Activity

  1. added
    Bug
    Continuous Integration
    Security
    on Oct 8, 2026
  2. added 6 commits that reference this issue on Oct 8, 2026
  3. added theissue type on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugContinuous IntegrationSecurity

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions