Skip to content

Enforce local Markdown links and schedule advisory external link checks #2162

Closed

Description

@josecelano

Goal

After torrust-linting adds lychee support, enforce deterministic local Markdown file and fragment checks through the existing pre-commit and normal CI linting paths. Add a separate advisory weekly workflow for external URLs so link rot is detected without making network failures a merge blocker.

Background

Tracker issue #2150 established lychee.toml with offline = true and include_fragments = "full", repaired the maintained Markdown local-link baseline, and opened torrust/torrust-linting#3 to add lychee to the shared linter CLI.

Local links and anchors are deterministic and fast, so they are appropriate for pre-commit and normal CI. External links need network requests and can fail due to transient network failures, rate limits, or unavailable third parties. Therefore they must run only through a scheduled or manually dispatched workflow that is not a required PR status check. Lychee must fail normally in that workflow so findings are visible; the workflow remains non-blocking because it is not required for merge, not because it uses continue-on-error.

Scope

  • Block implementation on completion of torrust/torrust-linting#3.
  • Wire the shared offline linter lychee check into the repository's normal linting path, pre-commit, and normal CI.
  • Add a weekly GitHub Actions workflow with workflow_dispatch for online lychee checks.
  • Use GITHUB_TOKEN without logging it, and configure bounded timeouts, retries, concurrency, and request interval.
  • Upload a readable failure report with documented artifact retention.
  • Document the advisory status and triage procedure: re-run once; fix a persistently broken URL or add a narrow documented exclusion when justified.

Acceptance criteria

  • torrust/torrust-linting#3 is complete and the selected shared-linter version supports this repository's lychee.toml convention.
  • linter all runs deterministic offline local Markdown file and fragment validation in pre-commit and normal CI.
  • A scheduled workflow runs online external-link checks weekly and through workflow_dispatch.
  • The scheduled workflow is not required for PR merges; lychee failures remain visible rather than hidden by continue-on-error.
  • The workflow uses GITHUB_TOKEN securely, has bounded requests, and retains a readable report artifact.
  • The repository documents the external-link failure triage procedure.

References

Activity

  1. added 2 commits that reference this issue on Sep 8, 2026
  2. added 5 commits that reference this issue on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions