Skip to content

feat(conventions): allow an Avunu reusable workflow at its exact release tag - #92

Merged
batonac merged 1 commit into
mainfrom
policy/reusable-release-tags
Nov 25, 2026
Merged

batonac merged 1 commit into
mainfrom
policy/reusable-release-tags

Conversation

@batonac

@batonac batonac commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Policy change: a reusable workflow call to an Avunu repository may pin its exact release tag (@vX.Y.Z) as well as a commit SHA with the version in a trailing comment.

  • Reusable calls to any other owner keep the SHA.
  • Workflow steps and composite-action steps keep their existing rules.
  • A floating branch is never allowed.
  • ci-pins accepts the tag for an Avunu reusable call, and still rejects a branch, another owner's tag and a tag on a composite step.

Trade-off

gh-actions-lock does not lock reusable workflows, so a tag names a release rather than a commit. Accepted for Avunu's own workflows, which the same organisation publishes. Not extended to other owners.

Companions

frappe-nix #315 (the zizmor list and the reusable-pins gate), site-docs #265 and gitops #1 (the docs wording).

Consumers

Consumers enforce the rule through their zizmor config (generated by frappe-nix). A tag passes zizmor only where that config names the reusable workflow, so the companion frappe-nix change must ship before a consumer switches a pin to a tag.

Test plan

  • checks/lib-conventions.nix builds (a SHA and a tag pass, a tag on a reusable call to another owner fails, a branch on an Avunu reusable call fails with the new message).
  • lib/checks/repository.py pins . on this repository passes.
  • prek on the changed files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AAw4Sw2knFZL7NYgFroq1Y

…ase tag

A reusable workflow call to a workflow of an Avunu repository may now name its
exact release tag (@vX.Y.Z), as well as the commit SHA with the version in a
trailing comment. Reusable calls to any other owner, a composite action's steps
and workflow steps keep their existing rules. A floating branch is never a pin.

gh-actions-lock does not lock reusable workflows, so a tag names a release
rather than a commit: the trade-off is accepted for Avunu's own workflows, which
the same organisation publishes, and it is not extended to other owners.

ci-pins now accepts that form for a reusable call to an Avunu repository and
still rejects a branch, another owner's tag, and a tag on a composite action's
step. The conventions test and the docs say the same.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AAw4Sw2knFZL7NYgFroq1Y
@batonac
batonac marked this pull request as ready for review November 25, 2026 02:16
@batonac
batonac merged commit 4ba057a into main Nov 25, 2026
13 checks passed
@batonac
batonac deleted the policy/reusable-release-tags branch November 25, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant