Skip to content

Fix broken link check workflow - #382

Merged
manuignatius merged 2 commits into
masterfrom
broken-link-fix
Aug 11, 2026
Merged

Fix broken link check workflow#382
manuignatius merged 2 commits into
masterfrom
broken-link-fix

Conversation

@manuignatius

Copy link
Copy Markdown
Contributor

The scheduled broken-link-check job has been failing on every run, reporting hundreds of false positives and never producing a usable signal. Root causes were two Docker container path mismatches:

  1. The generated markdown-link-check config file was written to $RUNNER_TEMP, a host path not mounted into the checker's container, so the config (ignore patterns, alive status codes, internal link replacement patterns) silently never loaded.
  2. Once that was fixed, the internal-link replacement patterns still baked in $GITHUB_WORKSPACE, the host-side path, instead of the container's fixed mount point /github/workspace, so every internal link still resolved to a path that doesn't exist in the container.

Also removed the Slack notification step (webhook no longer active, Slack unused) and allow-listed IEEE Xplore's 418 anti-bot response alongside the existing 403/429/999 exceptions for other publishers.

Verified with two workflow_dispatch runs on this branch: first run after fix #1 still failed on the second bug; run after fix #2 passed clean (run 31184596307).

manuignatius and others added 2 commits August 7, 2026 18:56
The markdown-link-check step's custom config (ignore patterns for
{{...}} Liquid syntax, /images/* paths, and expected 403/202/999
statuses) was never being applied. The generate-config step wrote it
to $RUNNER_TEMP, but that step's action runs in a Docker container
where $RUNNER_TEMP is mounted at a different path, so the config file
was never found and every internal link and third-party 403 got
reported as dead. Write the generated config into $GITHUB_WORKSPACE
instead, which mounts 1:1 into the container, and reference it as a
workspace-relative path.

Also drop the Slack notification step. It posted to a webhook that no
longer exists (Slack returned 404/no_active_hooks on every run), and
Slack is no longer used for this notification.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The generated replacementPatterns embedded $GITHUB_WORKSPACE, which is
the runner's host-side path (e.g. /home/runner/work/...). The check
itself runs inside the markdown-link-check Docker container, where the
workspace is mounted at the fixed path /github/workspace instead, so
every internal link resolved to a path that doesn't exist in the
container even though the file is really there. Hardcode /github/workspace
since that mount point is a fixed property of this action, not the runner.

Also add 418 to aliveStatusCodes. IEEE Xplore returns it to automated
clients as an anti-bot response, the same way other publishers already
allow-listed here return 403; it doesn't mean the paper is gone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@manuignatius
manuignatius requested a review from notthetup August 7, 2026 14:37
@manuignatius
manuignatius merged commit b8fe1bc into master Aug 11, 2026
1 check passed
@manuignatius
manuignatius deleted the broken-link-fix branch August 11, 2026 11:02
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.

Move all news articles from Subnero old website to new on New pulse article - SWAN cartoon

2 participants