Commit Graph
17 Commits
Author SHA1 Message Date
FredApps 10b7e575e3 Merge branch 'main' into house-rules 2026-11-13 20:43:32 +01:00
Dylan M. Taylor 74e7770649 ci: use StepSecurity's maintained actions (#249)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 14:57:35 -05:00
Dylan M. Taylor 74ae128fc2 ci: run Harden-Runner on every job (#247)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:09:48 -05:00
FredApps 8c8a279610 Merge main into house-rules 2026-11-10 12:06:13 +01:00
Martin BallandClaude Opus 5.5 7e97b09989 Weblate workflow: export only; the import moves to AutoCraft
The import and the weblate/sync pull request will run under AutoCraft's
GitHub App on our own hardware, so this repository needs no write token.
Export still runs here with GITHUB_TOKEN, from main only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:39:37 +00:00
Martin BallandClaude Opus 5.5 58d559271c Weblate bridge: main-only base, scheduled import, keep sync PR additions
Answers FredApps' review on #199:
- The base is main as of the last export, re-rendered from the commit in the
  export message (tools/weblate_base.sh). The export's own output also holds
  pending Weblate changes, so using it lost them after an unrelated export.
- Import runs hourly from main (and on dispatch): the weblate branch has no
  workflow file, so a push there could never start it.
- Each rebuild of weblate/sync replays commits people added to the open PR
  (ATTRIBUTION.md, fixes) and pushes only when the tree changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:04:51 +00:00
Martin BallandClaude Opus 5.5 b477243560 Weblate sync PRs are merged by a maintainer, not auto-merged
Review on #191: CI checks the format, not that the text was accepted,
and main doesn't require reviews yet. Revisit with AutoCraft's merge
queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:45:39 +00:00
Martin BallandClaude Opus 5.5 421adb7de7 tools: Weblate bridge (export, import, PR body) and its workflow
tools/weblate_bridge.py turns locales/ into PO files on the `weblate`
branch and Weblate's accepted translations back into TSV edits. Both
directions diff against the last export commit, so neither a pending
Weblate translation nor a newer main change is lost. Import edits lines
in place and leaves @id rows, shared strings in app components, fuzzy
and incomplete entries alone. .github/workflows/weblate.yml runs export
on pushes to main and import plus the auto-merging `weblate/sync` PR on
Weblate's pushes. Tasks 2, 3 and 5 of the plan (ADR 0006); attribution
from Weblate's API waits for the deploy spike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:45:13 +00:00
FredApps b1057df383 Apply core rules to the catalog repository and preserve checker guards 2026-11-06 12:47:17 +01:00
FredApps 54d6989a02 Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. CLAUDE.md imports AGENTS.md. The house-rules workflow checks the copy.
2026-11-06 11:50:02 +01:00
tareq 1c05aa72d9 Fix Windows UTF-8 handling in catalog tool tests
The sync/rekey helpers already write UTF-8 catalogs; the tests used the
platform default encoding, so headers with "…" / Français failed under
cp1252. Report paths with forward slashes and run the tool suite in CI.
2026-11-04 08:36:53 +01:00
Martin BallandClaude Opus 5.5 14a44068d5 CP3: review — workflow hardening
- Release name checked with bash [[ =~ ]] (whole string), so a newline in the dispatch input
  can't pass a line-by-line grep.
- concurrency group per release name (scheduled verifies share one), cancel-in-progress false.
- A manual release must run on refs/heads/main and refuses an existing language-packs-<n> tag
  (gh release create ignores --target for an existing tag).
- docs: runs never overlap; a failed upload leaves a draft to delete before a rerun.
actionlint (with shellcheck 0.11.0) clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
2026-11-01 18:28:11 +00:00
Martin BallandClaude Opus 5.5 4b4ad82f3a CP3: review — release workflow never modifies a release; read-only build job, separate publish job, SHA-pinned actions
- An existing release name is refused; a new one is created as a draft, every asset uploaded,
  then published (no --clobber).
- build (contents: read, persist-credentials: false) verifies, tests and builds, uploading dist/
  as an artifact; publish (contents: write) only downloads and uploads it.
- Release names come through env, never interpolated into run:, and must match
  language-packs-<n>.
- actions/checkout, cache, upload-artifact and download-artifact pinned by commit SHA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
2026-11-01 18:18:24 +00:00
Martin BallandClaude Opus 5.5 6451529401 CP3.1–CP3.3: Language pack manifest, checks and release workflow
- CP3.1: docs/language-data-format.md (the pack contract); language-data/manifest.toml seeded from
  the 2026-10-31 licence audit: 80 locales, 357 pinned files (LibreOffice/dictionaries 4f1df64b,
  tex-hyphen 5684c0f5, wooorm 8cfea406, sk/cy/mn/ug upstreams), sha256 and size from the
  downloaded files, SPDX licence and Licence class per file. bg, uk, ta, hr, pt-PT Download-only
  (weak evidence); eu, ug Excluded.
- CP3.2: craft-i18n-tests `packs` module. Offline on every run: licence allow-list and class
  per SPDX expression, pinned URLs, sha/size shape, no duplicate (locale, kind), aff+dic pairs,
  licence text present, check words per locale, Excluded never published. With
  CRAFT_I18N_FETCH=1: every file matches its pin, and every published pack loads through
  craft-proof's affix engine (dev-dependency, benandez/craft-libs 961162a) and gets its
  language-data/checks/<locale>.toml words right. 37 locales hidden with the engine gap as reason.
- CP3.3: `language-packs` bin (check, fetch, build: deterministic <locale>.tar.zst + index.json,
  --base-url for a local test server) and .github/workflows/language-packs.yml (weekly verify;
  tag language-packs-* or manual run publishes release assets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8LsYYE8fsj4byBm2
2026-11-01 17:54:26 +00:00
Dylan M. Taylor b8abd744b5 ci: add SonarCloud scan via shared reusable workflow 2026-10-24 05:21:24 -04:00
dependabot[bot] 9251283da3 ci(deps): Bump actions/checkout from 4 to 7 in the actions group
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-22 08:18:06 +00:00
Martin BallandClaude Opus 5.5 a526de8a06 chore: initial craft-i18n tree: scaffold, glossary, ADRs, roadmap
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 00:00:07 +01:00