Repository navigation
docs: tighten Airflow references to placeholders across framework files - #1
Merged
Merged
Conversation
Mechanical sanitization pass replacing literal Airflow URLs and ASF-domain strings with placeholders, leaving illustrative "(example: …)" parentheticals intact: - airflow.apache.org/docs/.../security_model.html → <security-model-url> - https://airflow.apache.org/ → <project-website>/ - security.airflow.apache.org → <security-list-domain> - domain: "airflow.apache.org" (in ponymail/gmail code samples) → <project-domain> - `Apache Airflow:` literal title prefix → described as <vendor>: <product>: with Airflow as illustrative example Affects 13 files (5 skills + 6 tool docs + README + CONTRIBUTING). Remaining "Apache Airflow" references are in placeholder-convention tables, "(example: …)" parentheticals, and the vulnogram SKILL.md documenting the airflow-specific reference implementation — all within the "Airflow as example in comments" rule from .../airflow-steward repository conventions. Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 of 6 tasks
potiuk
referenced
this pull request
in andreahlert/magpie
May 1, 2026
…, lychee) Adds a minimal doc-validation layer to pre-commit + a lychee link-check workflow. Catches the bug classes review currently has to find by eye: - markdownlint-cli2 with a tight config (MD051 broken anchors, MD053 dangling link refs); style rules off so the diff stays small - typos with project-term allowlist in .typos.toml (CNA, Vulnogram, ponymail, mis-, Nd, pre-empted) - tools/dev/check-placeholders.sh refuses hardcoded apache/airflow / Apache Airflow inside .claude/skills/ and tools/*.md (PR #1 already had to scrub these once) - lychee runs in a separate workflow on PR + daily cron; informational only today (continue-on-error: true) because the existing tree has 24 pre-existing broken refs to files that have not landed yet (config/, projects/airflow/, the issue-template YAML); flips to a hard gate once the baseline reaches zero Wiring this up surfaced five real broken anchors I fixed along the way: - AGENTS.md missing "the project's" prefix in #point-reporters-to-the-security-model-dont-re-explain-it - tools/ponymail/operations.md anchors #get-email and #get-thread pointed at headings that are actually "Get an email" / "Get a thread" - projects/_template/scope-labels.md and tools/github/issue-template.md carried headings with a literal "→" that GitHub URL-encodes into unresolvable slugs; renamed to "to" and re-ran doctoc Signed-off-by: André Ahlert <andre@aex.partners>
potiuk
added a commit
that referenced
this pull request
May 1, 2026
…, lychee) (#18) * ci: add doc-validation hooks (markdownlint, typos, placeholder linter, lychee) Adds a minimal doc-validation layer to pre-commit + a lychee link-check workflow. Catches the bug classes review currently has to find by eye: - markdownlint-cli2 with a tight config (MD051 broken anchors, MD053 dangling link refs); style rules off so the diff stays small - typos with project-term allowlist in .typos.toml (CNA, Vulnogram, ponymail, mis-, Nd, pre-empted) - tools/dev/check-placeholders.sh refuses hardcoded apache/airflow / Apache Airflow inside .claude/skills/ and tools/*.md (PR #1 already had to scrub these once) - lychee runs in a separate workflow on PR + daily cron; informational only today (continue-on-error: true) because the existing tree has 24 pre-existing broken refs to files that have not landed yet (config/, projects/airflow/, the issue-template YAML); flips to a hard gate once the baseline reaches zero Wiring this up surfaced five real broken anchors I fixed along the way: - AGENTS.md missing "the project's" prefix in #point-reporters-to-the-security-model-dont-re-explain-it - tools/ponymail/operations.md anchors #get-email and #get-thread pointed at headings that are actually "Get an email" / "Get a thread" - projects/_template/scope-labels.md and tools/github/issue-template.md carried headings with a literal "→" that GitHub URL-encodes into unresolvable slugs; renamed to "to" and re-ran doctoc Signed-off-by: André Ahlert <andre@aex.partners> * fix(ci): bump node language version + use ASF-allowlisted lychee-action SHA PR #18's first CI run failed three checks; this fixup commit addresses all three: - prek / markdownlint — markdownlint-cli2 v0.22.1 requires Node ≥ 20 (its string-width dep uses the regex `/v` flag), but `default_language_version.node` was pinned to 18.6.0. Bumped to 22.11.0 (current active LTS). - asf-allowlist-check — `lycheeverse/lychee-action@82202e5e…` (v2.6.1) is not on the ASF infrastructure-actions allowlist. Re-pinned to the allowlisted v2.8.0 SHA `8646ba30535128ac92d33dfc9133794bfdd9b411`. Comment in the workflow now explains the allowlist requirement so future bumps go through the same check. - zizmor (ref-version-mismatch) — the v2.6.1-comment + actual-SHA combination from the original pin was flagged because the SHA pointed to v2.4.1, not v2.6.1. The new v2.8.0 SHA correctly maps to its tag, so the warning disappears with the same change. prek + zizmor verified clean locally. Generated-by: Claude Code (Opus 4.7) --------- Signed-off-by: André Ahlert <andre@aex.partners> Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
5 of 6 tasks
3 tasks
4 tasks
This was referenced May 26, 2026
4 of 5 tasks
potiuk
added a commit
to potiuk/magpie
that referenced
this pull request
Sep 15, 2026
Run apache#1 of `bump dev version` failed, and the reason is worth keeping rather than rediscovering: gh: protected branch 'main' check failed: 3 of 3 required status checks are expected. `main` requires three status checks, and a commit arriving through the API carries none — GitHub enforces branch protection there exactly as it does on a push. The preceding commit already routes the bump through a pull request; this records the evidence for why, in the workflow header and in CONTRIBUTING, so the direct-push shape is not proposed again. Generated-by: Claude Opus 5
potiuk
added a commit
that referenced
this pull request
Sep 15, 2026
* feat(dev): check the bump candidate with the real PR workflows, open it as a draft The bump commit never met a gate. A commit created through GitHub's API raises no events, and a direct push to `main` is not a pull request, so nothing would have checked what this workflow produces — and a bump is not "only a version string": it regenerates fourteen manifests and the lockfile, any of which can come out wrong. The candidate is now built on its own branch, put through the *same* four check workflows a pull request runs, and only then offered as a pull request. A failed check deletes the branch instead of leaving a broken PR behind. `pre-commit.yml`, `tests.yml`, `rat.yml` and `zizmor.yml` each gain a `workflow_call` trigger and an optional `ref` input, and the bump workflow `uses:` them. They are called, not copied, so they cannot drift from what a PR gets; the input is empty on every other trigger, leaving `actions/checkout` on its normal behaviour. The pull request opens as a **draft**, which is what makes it usable. GitHub raises no `pull_request` events for anything `GITHUB_TOKEN` does, so a ready PR opened from here would sit forever on "N of N required status checks are expected", and the checks this workflow ran are attached to its own run rather than to the PR head. Marking a draft ready raises `ready_for_review`, which is a real event because a human does it — so the four check workflows now list that type explicitly (it is not in the default set) and pressing *Ready for review* starts the required checks against the PR head, exactly as an ordinary PR gets them. Reusable-workflow calls use GitHub's `$/` self-repository syntax rather than `./`, per zizmor's `self-repository` audit. Generated-by: Claude Opus 5 * docs(dev): describe the dev-version bump workflow `CONTRIBUTING.md` listed every CI workflow except the one a human starts by hand, which is also the only one that writes to the repository — so the job graph, the signed-commit path and the draft-PR behaviour existed only as comments inside the YAML. Adds a *Bumping the dev version* section covering the six jobs, why the checks are `uses:` of the real workflows rather than copies of their steps, and why the pull request opens as a draft: GitHub raises no `pull_request` events for anything `GITHUB_TOKEN` does, so marking the draft ready is what starts the required checks against the PR head. Notes the side effect that every draft PR in this repo now behaves that way, and gives the one-liner for reviewing a bump diff — every changed line should be the version string and nothing else. Also realigns `docs/setup/marketplace.md` § *How to bump*, which still described the workflow committing straight to `main`. Generated-by: Claude Opus 5 * docs(dev): record why the bump cannot commit to main Run #1 of `bump dev version` failed, and the reason is worth keeping rather than rediscovering: gh: protected branch 'main' check failed: 3 of 3 required status checks are expected. `main` requires three status checks, and a commit arriving through the API carries none — GitHub enforces branch protection there exactly as it does on a push. The preceding commit already routes the bump through a pull request; this records the evidence for why, in the workflow header and in CONTRIBUTING, so the direct-push shape is not proposed again. Generated-by: Claude Opus 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up sanitization pass on the framework, replacing literal Airflow URLs and ASF-domain strings with the framework's placeholder convention. Remaining "Apache Airflow" references are in legitimate
(example: …)parentheticals, placeholder-convention tables, and the vulnogram SKILL.md documenting the airflow-specific reference implementation — all within the "Airflow as example in comments" rule.What's substituted
airflow.apache.org/docs/.../security_model.html<security-model-url>https://airflow.apache.org/(project website)<project-website>/security.airflow.apache.org(security-list domain)<security-list-domain>domain: "airflow.apache.org"(in ponymail/gmail code)domain: "<project-domain>"`Apache Airflow:`(literal title prefix)`<vendor>: <product>:` (e.g. `Apache Airflow:`)Files touched
13 files: 5 skills (
allocate-cve,import-security-issue,import-security-issue-from-pr,invalidate-security-issue,sync-security-issue), 6 tool docs (tools/{ponymail,gmail,vulnogram}/*.md),README.md, andCONTRIBUTING.md.Test plan
Apache Airflow/airflow.apache.org/apache/airflow/airflow-s/airflow-smentions dropped from ~50 to ~36.(example: …)parentheticals or placeholder tables.tools/vulnogram/generate-cve-json/Python implementation to be project-agnostic (currently airflow-specific defaults; the SKILL.md still describes airflow defaults). Once refactored, the framework can ship the implementation, and the SKILL.md can drop the Airflow-specific examples.🤖 Generated with Claude Code