Skip to content

fix(ci): coverage comment no longer autolinks to a fake domain#38

Merged
Metbcy merged 1 commit intomainfrom
fix/coverage-comment-fake-link
Apr 30, 2026
Merged

fix(ci): coverage comment no longer autolinks to a fake domain#38
Metbcy merged 1 commit intomainfrom
fix/coverage-comment-fake-link

Conversation

@Metbcy
Copy link
Copy Markdown
Owner

@Metbcy Metbcy commented Apr 30, 2026

Reported behavior

After the v0.9.8 release notification landed in the maintainer's inbox, the coverage-report PR comment was rendering the lcov artifact name as a hyperlink in email — pointing at a real, unrelated parked domain. Exactly the kind of supply-chain-credibility hit a security tool can't afford.

Root cause

The sticky coverage comment includes the workflow artifact name verbatim. In GitHub's web UI the backticks make it inline code, but email and feed clients re-render the comment with their own autolinker that strips backticks and matches anything ending in a registered TLD. Because the standard lcov filename ends in a TLD, the literal token was getting linked to a real, unrelated domain.

Fix

  • Rename the upload-artifact bundle to coverage-lcov. The on-disk filename stays unchanged so lcov-consuming tools (vscode-coverage-gutters, codecov, etc.) still find it inside the artifact.
  • Replace the bare token in the comment with a direct link to the workflow run's #artifacts tab. Email readers now have a safe destination.
  • Sanitize CONTRIBUTING.md and CHANGELOG.md to keep the same fix from leaking back through release-notes emails / RSS feeds.
  • Internal ci.yml references (--output-path, path:, shell parsing) keep the on-disk filename. They're never rendered to email and changing them would break lcov format consumers.

Validation

  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/ci.yml'))" parses clean.
  • This PR's own coverage comment is the dogfood — once CI lands, the sticky comment should show the workflow-run link rather than the bare token.

v0.9.8's coverage job named the workflow artifact after the standard

lcov-output filename and rendered the same string in its sticky PR

comment. In GitHub's web UI the backticks rendered the token as

inline code; in email and feed clients, however, re-renderers strip

backticks and run their own autolinker over the plain text. Because

the filename's extension is a registered TLD, every notification

email turned the literal artifact-name into a hyperlink to a real,

unrelated parked domain. Reported by the maintainer after spot-

checking the v0.9.8 release-notification email.

Three changes:

  - Rename the workflow artifact to `coverage-lcov`. The on-disk

    filename stays unchanged so lcov-consuming tools (vscode-

    coverage-gutters, codecov, etc.) still find it inside the

    artifact bundle.

  - Replace the bare token in the sticky comment with a real link

    to the workflow run's artifacts tab. Email readers now have a

    safe destination to follow instead of the autolinked TLD.

  - Update CONTRIBUTING.md and CHANGELOG.md to use the new

    artifact name and avoid the bare token where the docs feed

    user-visible surfaces (release-notes emails, RSS).

Internal references in ci.yml (`--output-path`, `path:`, shell

parsing) keep the on-disk filename — they're never rendered to

email and changing them would break tooling that consumes the

lcov format.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Coverage report

Line coverage: 85.7% (9157 / 10679 lines)

Full lcov report available as workflow artifact coverage-lcov: download from this run.

v0.9.8 introduces this report; --fail-under-lines will be added once coverage is visible across 2–3 releases.

@Metbcy Metbcy merged commit f2f694a into main Apr 30, 2026
9 checks passed
@Metbcy Metbcy deleted the fix/coverage-comment-fake-link branch April 30, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant