From 96ed730c815f00d6f785935b09ec6fa25493dd21 Mon Sep 17 00:00:00 2001 From: Russ Rutledge Date: Tue, 11 Aug 2026 21:04:49 -0500 Subject: [PATCH] Fix link checker false positives on root-relative asset links lychee cannot resolve links like /assets/img/foo.png without being told the repo root, so any changed file containing a pre-existing root-relative link fails the check even though the link is valid. Pass --root-dir . so lychee resolves these against the repo root. Observed in PR #926, which failed on an unrelated pre-existing image link. --- .github/workflows/link-checker-prs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-checker-prs.yml b/.github/workflows/link-checker-prs.yml index 83570ec52..291819d12 100644 --- a/.github/workflows/link-checker-prs.yml +++ b/.github/workflows/link-checker-prs.yml @@ -39,7 +39,7 @@ jobs: name: Link Checker uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --cache --max-cache-age 1d $MARKDOWN_FILES + args: --verbose --no-progress --cache --max-cache-age 1d --root-dir . $MARKDOWN_FILES fail: true failIfEmpty: false jobSummary: true