Stabilize Trivy Code Scanning alert identity
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Use one image reference for every trigger.
- After merge, verify that a scheduled run and a push run leave every Trivy alert number and state unchanged.
- 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
- Dominant language
- Rust
- Stars
- 532
- Forks
- 56
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 282
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from torrust/torrust-tracker
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
torrust/torrust-tracker#3080 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
torrust/torrust-tracker#3069 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
torrust/torrust-tracker#3058 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
torrust/torrust-tracker#2978 ·
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
torrust/torrust-tracker#2332 ·
Maintainers usually reply within 1 day
All issues in torrust/torrust-tracker
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
difficulty: easy docs help wanted tooling
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
userFRM/egui-charts#4386 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·