cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

d29aa00b93d60e1ac0d6df8b9a48000384da2a4a

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2026-08-22T04:01:37Z

Exclude code samples from the link report

Posts document commands and configs, so the built HTML contains localhost URLs
and API endpoints with placeholder parameters. They are never reachable and were
31 of the 106 failures — noise that buries the real ones.
 .github/workflows/link-check.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml
index 9575f0c..edfb521 100644
--- a/.github/workflows/link-check.yml
+++ b/.github/workflows/link-check.yml
@@ -62,6 +62,8 @@ jobs:
           args: >-
             --root-dir ${{ github.workspace }}/.build-dev
             --exclude '\.onion'
+            --exclude '^https?://(localhost|127\.0\.0\.1|0\.0\.0\.0)'
+            --exclude '(\{|%7B|client_id=$)'
             --max-concurrency 8
             --max-retries 2
             --timeout 20