Files
marqdo/scripts/component-release/README.md
T
cflmyandCursor a61f3442bc
ci/woodpecker/push/eco Pipeline is pending
ci/woodpecker/pr/eco Pipeline is pending
ci: complete component release propagation for issue #10
Add authoritative component-release helpers, evidence-aware reconcile with
freshness and root upstream dispatch, least-privilege secrets, image scan
and multi-arch build gates, and pin active component publish workflows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-27 19:30:18 +08:00

22 lines
1.2 KiB
Markdown

# Component release helpers (authoritative copy)
This directory is the **single authoritative implementation** of the thin
component release helpers required by [marqdo#10](https://git.cflmy.cn/cflmy/marqdo/issues/10)
§4 (immutable release identity) and §6 (notify after publish).
Active component repositories vendor an identical copy under `scripts/release/`
and run only that local copy. CI must never download these scripts from the
parent repository at runtime. When the helpers change, update this directory
first, re-run the root unit tests, then copy the same bytes into each consumer
and record the content hashes in that consumer's `scripts/release/README.md`.
| Module | Role |
| --- | --- |
| `package_source.py` | Deterministic source archive + `.sha256` from an allowlist |
| `write_evidence.py` | Emit `release-evidence.json` (external index; no self-hash) |
| `publish_gitea.py` | Draft → upload assets (index last) → undraft; never overwrite public assets |
| `notify_root.py` | Bounded retry trigger of the root `reconcile` Woodpecker workflow |
Secrets stay out of package/evidence scripts. Publish workflows hold
`gitea_publish_token`; notify workflows hold `woodpecker_notify_token`.