Stabilize Trivy Code Scanning alert identity

Abierto
#2,499 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, github-actions, yaml
Área
ci-cd, security

Línea de trabajo

Start with the Security Scan workflow, comparing the image reference used by the scheduled run (torrust/tracker:develop) with the one built for push and pull-request runs (torrust-tracker:local). Read the spec at docs/issues/open/2499-stabilize-trivy-code-scanning-alert-identity/ISSUE.md, delivered through PR #2498. Done means one image reference for every trigger, and alert numbers and states unchanged across a scheduled run and a push run.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Bug Continuous Integration Security

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

  • The Security tab reports vulnerabilities as fixed while they are still in the image.
  • Alert numbers cited in review inventories, CVE records, and issue closure criteria go stale at the next trigger change (found in PR #2498 review).

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

Lenguaje dominante
Rust
Estrellas
532
Forks
56
Merge medio
11 h 20 min
PR fusionados (30 d)
282

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de torrust/torrust-tracker

Todos los issues de torrust/torrust-tracker

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.