Markdown report does not escape bare URLs, so GitHub renders them as links
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 82/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, go
- Bereich
- documentation, security
Rechercherichtung
Beginne mit internal/report/markdown.go:145-157 und dem Kommentar, der den Vertrag beschreibt, und prüfe anschließend die Report-Tests und Golden Files für mdInline. Ergänze Tests für Eingaben mit https://, http:// und www. und aktualisiere alle betroffenen Golden Files. Fertig ist die Änderung, wenn diese Eingaben nicht mehr als Autolinks gerendert werden und die Tests bestehen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
The markdown renderer escapes markdown punctuation but leaves www., http:// and https:// intact, and GitHub-flavored Markdown turns those into links. The renderer's own contract is that text from the target is never written raw.
Where
internal/report/markdown.go:8(contract comment)internal/report/markdown.go:145-157(mdInline)internal/report/doc.go:229,internal/engine/run.go:535(notes with target paths)action.yml:264(report appended to the job summary)
Details
The escaped set covers \, backtick, *, _, brackets, angle brackets, |, #, ~, !, &, $ and @. None of ., : or / is escaped, so GFM extended autolinks still match. No test in internal/report mentions autolinks. Checked against the GFM specification, not in a browser.
Impact
A file name, finding title or note taken from scanned content can appear as a clickable link in the markdown report and in the job summary. No markup or script is involved; the effect is limited to links.
Steps to reproduce
- Commit a file larger than 1 MiB named
www.example.organd runspackle scan . --format markdown. - The report contains a "Not read: www.example.org" note, which GitHub renders with the name as a link.
Suggested fix
In mdInline, break the autolink triggers: write www\. for a www. at a word start and \: for the colon of :// (a backslash before ASCII punctuation is dropped by the renderer and stops the autolink match).
Acceptance criteria
- A test with
https://,http://andwww.inputs asserts the output does not autolink - Golden files are updated and the diff is explained
Related: #45, #129
Getting started
- Relevant files: action.yml, internal/report/doc.go, internal/report/markdown.go
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: bug|internal/report/markdown.go|mdInline
- Vorherrschende Sprache
- Go
- Sterne
- 0
- Forks
- 1
- Ø Merge
- 8 Std. 14 Min.
- Gemergte PRs (30 T.)
- 3
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
-
ci good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
TMHSDigital/Spackle#206 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ci severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/Spackle#205 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
TMHSDigital/Spackle#195 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue severity: medium
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
TMHSDigital/Spackle#188 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TMHSDigital/Spackle#187 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TMHSDigital/Spackle
Ähnliche Issues
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
medici-finance/assay#8120 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
agent-substrate/substrate#4308 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
celestiaorg/celestia-app#8877 ·
Maintainer antworten meist innerhalb von 1 Tag
-
sweep
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
bketelsen/truenas-mcp#112 ·
Maintainer antworten meist innerhalb von 1 Tag