ADR 0002: Adopt the released shared workflow¶
Status: accepted. On 2026-10-24, unauthenticated HTTPS retrieval of the released workflow and a credential-free Git tag lookup confirmed public source access. The source was private when the draft was prepared; migration waited for the owner to make it public. No credentials or access settings were changed by this migration.
The original adoption used the reusable workflow at:
Living-Proof-Labs/collaboration-guidelines/.github/workflows/semantic-release.yml@v2.0.0
Verified resolved commit: v2.0.0 resolved commit. Use the version tag in the reference; retain the resolved-commit link as verification evidence. Published tags must never be retargeted. Adopt updates through a PR after checking the release notes, diff, and consumer validation. Moving branches or major aliases are not substitutes. Third-party Actions keep their existing reviewed security pins.
The released workflow exposes boolean input dry-run (default false) and outputs
published, version, git-tag, and release-url. published is a string;
no release returns false and empty version/tag/URL. Dry runs still require source
and repository access and are not PR previews. Downstream jobs can use
needs.release.outputs.version; CI run identity remains a separate future concern.
See the versioned contract.
The consumer verifies the triggering checkout with task verify first. The release
job has needs: verify, retains the main-only trigger and RELEASES_ENABLED off
switch, and requests only the existing contents-write permission. The shared
workflow receives GitHub's existing caller token automatically; no inherited
secrets, PAT or extra permission is configured. The source checks out the caller's
exact triggering commit with full history and serializes publication per caller.
Its bundled Action, configuration and lockfile resolve at the called revision.
Remove the consumer's duplicated release configuration, semantic-release/preset/ semver dependencies and release-engine/policy tests. The released source owns those contracts and tests, including docs/maintenance patch rules and breaking precedence. Keep consumer title and exact-SHA preview validation, plus caller boundary tests. Local checks cannot prove reusable-workflow access or a successful hosted release.
The migration must not recreate or move existing release tags:
- v1.0.0: v1.0.0 release commit
- v1.0.1: v1.0.1 release commit
After source visibility is verified, run hosted consumer checks before merge, then verify the post-merge generated release and tag. Keep generated notes in GitHub Releases, without tracked changelogs or version-bump commits. ADR 0001's accepted release semantics remain; this changes ownership of machinery, not that policy.
The caller moved to semantic-release.yml@v2.0.3 in
PR #8
(PR #8 merge commit).
The #14 manual adoption and the #16 ownership adoption left that release-workflow pin unchanged. The caller
moved to semantic-release.yml@v7.10.8 in
PR #38.
It subsequently moved to semantic-release.yml@v9.6.15 in
PR #77,
resolved to the v9.6.15 resolved commit. The source of the
current pin is the release caller.
The historical v2.0.0 reference above records the original decision.