16 Commits
Author SHA1 Message Date
Defame1297 90928cdfc0 docs: name only the roles that ship and drop their licence leftovers
Name the roles under roles/ in the README intro and the Galaxy
description, and drop the NOTICE and REUSE.toml entries and licence texts
(Apache-2.0, EUPL-1.2, MIT) of roles that are not in the Collection. The
reuse_lint.py wrapper only tolerated those unused texts, so the hook runs
plain `reuse lint`. The GPL-3.0-only reason is ufw's before.rules.j2.

Remove HANDOFF.md and .reuse from build_ignore (neither has existed) and
correct the galaxy.yml comment on dependency bounds.

Part of #164

Assisted-by: Claude Code
2026-11-24 12:46:28 +00:00
Defame1297 4f29901a80 ci(pre-commit): refuse CLAUDE.md in any letter case
The refuse-claude-md pattern was case-sensitive, so claude.md or CLAUDE.MD
passed it, yet a case-insensitive file system serves either as CLAUDE.md.
Match with the inline (?i) flag. The hook config is a ci image input, so
the ci image moves from 0.2.37 to 0.2.38.

Assisted-by: Claude Code
2026-11-23 19:58:50 +00:00
Defame1297 d8f044740a Merge branch 'main' into ci/244-refuse-claude-md
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Failing after 1m3s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 19:27:59 +00:00
Defame1297 de16995f35 ci(pre-commit): refuse CLAUDE.md files by hook
Claude Code reads CLAUDE.md in place of AGENTS.md, so a stray CLAUDE.md,
CLAUDE.local.md or .claude/CLAUDE.md at any depth leaves an agent without
this repository's guidance, and nothing reports it. A language: fail hook
refuses such a file at commit time.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:14:00 +00:00
renovate-bot 8d7e71c881 chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.33.1
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m38s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 18:27:09 +00:00
renovate-bot 43fcc382c6 chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.33.0
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 20s
Lint / lint (pull_request) Successful in 1m18s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 03:17:41 +00:00
Defame1297andClaude Opus 5.5 e45b92551a ci: lint workflows with zizmor
Add zizmor (v1.32.0, pinned by SHA) as a pre-commit hook over
.gitea/workflows, offline at its default level; it fails on
pull_request_target and on ${{ }} expanded into run:. The ci image
bakes and smoke-tests the new hook environment, so its version moves
to 0.2.32.

image.yml drops `packages: write` and the job-token probe: Gitea 28
refuses the job token for organisation packages, and the latest build
used the org push token. One probe of that token now fails fast.

Refs #145

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 18:52:22 +00:00
Defame1297andClaude Fable 5.2 3384ff2836 docs: remove references to anything outside this repository
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m3s
Molecule / molecule (pull_request) Successful in 15m33s
This repository is public and stands alone. Comments and prose no longer
describe another repository, its documents, hosts, network or runner
sizing; each one states its own reason or is gone.

- Workflow headers keep the conclusions (disposable runner with no
  outside secret, the if: guard is not a boundary, no fork pull
  requests, the image build's memory cap) and drop the description.
- Isolation lines are worded as a property of this repository.
- The denied image namespace stays in check_image_versions.py, described
  only as a namespace this repository's CI must not use.
- CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to
  run when bringing content in from another repository.
- ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and
  requirements-dev.txt are image inputs.

The ADR 0004 pointers, the README Roadmap, the skills-source mentions
and released changelog entries stay as they are.

Closes #108

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-20 22:57:17 +00:00
renovate-bot c427e6afd1 chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.17.6
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 50s
Molecule / molecule (pull_request) Successful in 1s
2026-11-20 03:18:16 +00:00
Defame1297andClaude Sonnet 5.5 76a6c2b91e chore(deps): update conventional-pre-commit hook to v4.5.0
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
Hand-made instead of Renovate's PR: the hourly PR limit was used up by
ubuntu digest bumps twice. The hook is an image input, so ci gets its
PATCH bump (0.2.22 -> 0.2.23). The rev is the dereferenced commit of the
annotated tag v4.5.0 (git ls-remote ...^{}).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTRacjtXvmKxHr5TM5G
2026-11-15 09:20:08 +00:00
Dragonish 4058978353 ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m42s
Molecule / molecule (pull_request) Successful in 5m23s
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use
  `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh,
  the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any
  disagreement between the two files.
- scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode).
- renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly,
  never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate.
- check_bot_pr_diff.py accepts `rev: <sha>  # frozen: <tag>` and lock entries, hashes and plain
  comments, but not a changed pip-compile header command.
- ci image 0.2.18 -> 0.2.19 (image inputs changed).
2026-11-14 16:52:38 +00:00
Defame1297andClaude Sonnet 5.5 18a7e26e4f ci(hooks): run ansible-test sanity before a push
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 5m22s
Add a pre-push hook that runs scripts/ansible-test-sanity.sh, so the Build job's sanity check, which ruff and the other hooks do not cover (it failed on a name only its pylint disallows), stops a push instead of the pull request. It is pre-push and not pre-commit because a cold run builds virtualenvs and needs the network; CI's pre-commit run does not run that stage, and a local system hook builds no environment. pre-push joins default_install_hook_types, and dev-setup.sh and its test treat it like the other two hook types, so its hook script also gets the virtualenv on PATH.

Verified through git push --dry-run in a throwaway clone: a commit with a disallowed name inside a function is blocked (exit 1, the same pylint message as CI, failed to push), and the push passes once it is removed.

Image input: .pre-commit-config.yaml is baked into the ci image, so ci 0.2.17 -> 0.2.18 (scripts/bump_image_versions.py). The new hook adds no hook environment and no layer size; the merge builds 0.2.18 and a pin PR follows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:52:35 +00:00
Defame1297andClaude Sonnet 5.5 bdb34cf98e fix(dev): run ansible-lint against the clone's pinned collections from any shell
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 43s
Molecule / molecule (pull_request) Failing after 49s
The hook scripts written by dev-setup.sh exported ANSIBLE_HOME and ANSIBLE_COLLECTIONS_PATH, so only a hook run through git commit saw the pinned collections; a bare pre-commit run fell back to the control host's ~/.ansible, the drift #118 removes. The ansible-lint hook now runs scripts/ansible-lint.sh, which uses .ansible/collections of the clone when ANSIBLE_COLLECTIONS_PATH is unset, fails with the fix when they are missing, and leaves a preset path (CI's /opt/collections) alone. dev-setup.sh keeps installing the collections and no longer edits the hook scripts beyond the PATH block it always wrote.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:14:37 +00:00
Defame1297andClaude Sonnet 5.5 42ad8de88f fix(ci): correct three review findings on the ruff and collections change
ruff.toml described the older E/F default rule set, which ruff 0.17 widened. The ansible-lint hook now also runs when requirements.yml changes, so a pin bump in a partial commit is linted. The Renovate post-upgrade note names requirements.yml among the image inputs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:04:33 +00:00
Defame1297andClaude Sonnet 5.5 557f573df2 ci(lint): add ruff and shellcheck hooks
Add ruff-check and ruff-format from astral-sh/ruff-pre-commit and shellcheck from
shellcheck-py, with ruff.toml at ruff's defaults plus C901, PLR0912 and PLR0915
(#112). ruff.toml is repository tooling, so it joins galaxy.yml build_ignore.

The existing scripts are formatted and fixed in the commits that follow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:20:06 +00:00
Defame1297andClaude Sonnet 5.5 904d833a6f ci: add pre-commit, lint and changelog configuration
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-24 21:10:20 +00:00