Repository navigation
feat(conventions): allow an Avunu reusable workflow at its exact release tag - #92
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ci-pinsaccepts 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-pinsgate), 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.nixbuilds (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.prekon the changed files.🤖 Generated with Claude Code
https://claude.ai/code/session_01AAw4Sw2knFZL7NYgFroq1Y