Skip to content

Reference the release checks by the repository's own syntax - #320

Merged
davidmckayv merged 1 commit into
mainfrom
fix/zizmor-self-repository
Sep 1, 2026
Merged

Reference the release checks by the repository's own syntax#320
davidmckayv merged 1 commit into
mainfrom
fix/zizmor-self-repository

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What this changes

One line in publish-release.yml. The release gate calls CI as a reusable workflow, and it named it
./.github/workflows/ci.yml. GitHub resolves both that and $/.github/workflows/ci.yml the same
way, from the caller's own commit, but the relative form is the same spelling a path on disk takes
and hides the fact that it is resolved against the repository rather than the checkout.

Why now

zizmor 0.6.3 added the self-repository audit, which flags exactly this. It is low severity and has
an auto-fix, but the security workflow exits non-zero on any finding, so #300 (the bump to 0.6.3)
cannot go green until this lands.

Verified against GitHub's own reusable-workflow documentation: $/ is the supported syntax for a
workflow in the same repository. The one caveat is that it is not available on GitHub Enterprise
Server, which does not apply here.

`uses: ./.github/workflows/ci.yml` and `uses: $/.github/workflows/ci.yml` both call the
reusable CI workflow from the caller's own commit, but only the second says so. The
relative form is the same spelling a path on disk would take, and GitHub resolves it
against the repository rather than the checkout, which is a difference nothing in the
file makes visible.

zizmor 0.6.3 added the audit that flags this (`self-repository`, low, with an auto-fix),
so the dependency bump in #300 fails on it until this lands.
@davidmckayv
davidmckayv merged commit 21ec231 into main Sep 1, 2026
14 checks passed
@davidmckayv
davidmckayv deleted the fix/zizmor-self-repository branch September 1, 2026 20:10
davidmckayv pushed a commit that referenced this pull request Sep 1, 2026
Picks up the self-repository audit, which publish-release.yml was fixed for in #320.
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