Wiki pipeline follow-ups: build the wiki on pull requests, and review the publish action's image tag and token handling #453

Open
opened 2026-11-14 03:41:25 -05:00 by claude · 0 comments
Owner

From the verification of the wiki branch (#435). None of these blocks publishing.

  1. The strict wiki build runs only on main. pages.yml is the only caller of .forgejo/scripts/build-wiki.sh. Lint checks the links but not the MkDocs build, and bump-pins.sh bumps DOCS_IMAGE weekly through the generic Dockerfile pin handling, so a page or a theme upgrade that adds a warning shows only after the merge to main. Wanted: the strict build as a pull-request check when pages/**, the docs target or the script changes (a step or small job on asgard; mind the planned move to containerized runners).
  2. The publish action runs a mutable image tag. https://codeberg.org/git-pages/action at the pinned commit 7f9731f4 runs docker://data.forgejo.org/git-pages/git-pages-cli:1.13.0 (a tag, not a digest), and bump-pins.sh does not track this action. It also passes the token as --token=... on the container's command line. Decide: accept and document, or call the CLI ourselves from a digest-pinned image with the token in the environment.
  3. The main-only guard is in the workflow file. A run started by hand from another branch is skipped, but a branch that edits pages.yml and dispatches it there is not stopped by the guard. Branch protection and who may dispatch workflows are the real control; say so in the workflow comment or CONTRIBUTING.md.
  4. Link checker limits (.forgejo/scripts/check-markdown-links.py): only src/branch/(main|develop)/ web addresses are checked (other branches, src/tag/, blob/, raw/ are skipped silently); #L10-style anchors on non-Markdown targets are not checked; the heading-anchor rule was not compared with a live Forgejo render for headings with punctuation. Wanted: report skipped web-address links instead of passing them silently, and one check of the anchor rule against the rendered README.
  5. Material for MkDocs prints an end-of-life notice (the theme names May 2027 and a successor). The sources are plain Markdown; plan the move before the pin can no longer be bumped.
From the verification of the wiki branch (#435). None of these blocks publishing. 1. **The strict wiki build runs only on `main`.** `pages.yml` is the only caller of `.forgejo/scripts/build-wiki.sh`. Lint checks the links but not the MkDocs build, and `bump-pins.sh` bumps `DOCS_IMAGE` weekly through the generic Dockerfile pin handling, so a page or a theme upgrade that adds a warning shows only after the merge to `main`. Wanted: the strict build as a pull-request check when `pages/**`, the docs target or the script changes (a step or small job on `asgard`; mind the planned move to containerized runners). 2. **The publish action runs a mutable image tag.** `https://codeberg.org/git-pages/action` at the pinned commit 7f9731f4 runs `docker://data.forgejo.org/git-pages/git-pages-cli:1.13.0` (a tag, not a digest), and `bump-pins.sh` does not track this action. It also passes the token as `--token=...` on the container's command line. Decide: accept and document, or call the CLI ourselves from a digest-pinned image with the token in the environment. 3. **The `main`-only guard is in the workflow file.** A run started by hand from another branch is skipped, but a branch that edits `pages.yml` and dispatches it there is not stopped by the guard. Branch protection and who may dispatch workflows are the real control; say so in the workflow comment or CONTRIBUTING.md. 4. **Link checker limits** (`.forgejo/scripts/check-markdown-links.py`): only `src/branch/(main|develop)/` web addresses are checked (other branches, `src/tag/`, `blob/`, `raw/` are skipped silently); `#L10`-style anchors on non-Markdown targets are not checked; the heading-anchor rule was not compared with a live Forgejo render for headings with punctuation. Wanted: report skipped web-address links instead of passing them silently, and one check of the anchor rule against the rendered README. 5. **Material for MkDocs prints an end-of-life notice** (the theme names May 2027 and a successor). The sources are plain Markdown; plan the move before the pin can no longer be bumped.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#453
No description provided.