Record external scanner versions in runs and warn in doctor when they differ from the tested pins
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 62/100
Rechercherichtung
Start with the seed.Status struct in internal/seed/seed.go (around lines 70-77) and the scanner checks in internal/cli/doctor.go (around lines 122-129), then read .github/workflows/scanners.yml to see how the pinned versions are tested. Add a Version field to the status, fill it from each adapter's version command in internal/seed/external.go with a short timeout, and move the pins into one Go table. Done means the version shows in doctor's text and JSON output and doctor warns when an installed scanner differs from its pin; run go test ./internal/seed ./internal/cli.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Runs and spackle doctor do not record which external scanner versions produced the leads. .github/workflows/scanners.yml explains that a scanner release that renames a flag or field makes the adapter "return nothing", and the adapters are only tested against the pinned versions.
Where
internal/seed/seed.go:70-77(seed.Status: name, availability, note, lead count, error; no version)internal/cli/doctor.go:122-129(a scanner isokwhenexec.LookPathfinds it).github/workflows/scanners.yml:3-15
Impact
Two runs of the same commit can differ because a scanner was upgraded, and nothing in the ledger or report shows it. Users on an untested scanner version get silently empty adapter output with no hint from doctor.
Suggested fix
Add Version string to seed.Status, filled once per run from each adapter's version command (gitleaks version, trivy --version, and so on) with a short timeout and the same output scrubbing. In doctor, show it with a warn when it differs from the tested pin, keeping the pins in one Go table that scanners.yml and the tool-versions check read. Print it on the report's seeder lines.
Acceptance criteria
- Each external scanner's version appears in the run's seeder statuses and in
doctor(text and JSON). -
doctorwarns when an installed scanner differs from the tested version.
Getting started
- Relevant files:
internal/seed/seed.go,internal/seed/external.go,internal/cli/doctor.go,.github/workflows/scanners.yml - How to run tests:
go test ./internal/seed ./internal/cli
Filed by repo-audit/full-audit at fffef43. Severity: low. Effort: M. audit-key: enhancement|internal/seed/seed.go|Status
- Vorherrschende Sprache
- Go
- Sterne
- 0
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/Spackle
-
enhancement good first issue severity: low
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 72/100
TMHSDigital/Spackle#139 ·
-
enhancement good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
TMHSDigital/Spackle#131 ·
-
runs and runs compare print target text without the control-character cleaning the reports useOffenbug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/Spackle#129 ·
Alle Issues in TMHSDigital/Spackle
Ähnliche Issues
-
bug raised-by:reviewer
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
medici-finance/assay#7655 ·
Maintainer antworten meist innerhalb von 1 Tag
-
helm chart: make DaemonSet pod affinity configurable via values.yamlEvtl. vergeben @Young-Zen hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
flannel-io/flannel#2632 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
go-vulnerability security-scan
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
teslashibe/agent-go#36 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nwverse/persona#15194 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug flaky-test
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
rosskukulinski/tailworks#411 ·
Maintainer antworten meist innerhalb von 1 Tag