GeezerVison is showing github.com — fix(ci): trigger the release workflow on anvil-v* and pin the publish action by HardcoreMonk · Pull Request #96 · HardcoreMonk/anvil
Conversation
HardcoreMonk
commented
Aug 6, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Found while investigating the audit's M9 (release artifact provenance). It turned out to dominate that finding, and it is a defect in its own right.
The workflow has never run
gh api repos/HardcoreMonk/anvil/actions/workflows/release.yml/runs --jq .total_count
0
The trigger was 'v*'. Anvil releases are tagged anvil-v*; bare v* is the upstream ephemera runtime namespace this fork deliberately keeps (CONTEXT.md, "Fork와 upstream 정책"). Nothing has matched since the workflow was added in June, so every release so far — anvil-v0.7.0 included — was built on a developer machine and uploaded by hand.
That also settles M9's provenance question: actions/attest-build-provenance would currently certify a CI build that does not happen. Adding it before releases actually move to CI would produce zero attestations while making the repository look like it has them.
Being dead was not the whole problem
origin already carries v0.1.0 and v0.2.0 from before this workflow existed, and the fork policy has upstream tags moving through the repository. The next upstream sync that pushed a v* tag to origin would have fired this workflow and published an anvil release built from an upstream ephemera tag, with contents: write in hand.
What changes
The trigger becomes anvil-v*, which both matches reality and closes that footgun.
workflow_dispatch is added so the pipeline can be exercised deliberately before a real tag depends on it. It has never executed on a GitHub-hosted runner, and the FULL variant runs debootstrap and produces a ~250 MB asset. Validate it on a throwaway tag before trusting it for a real release. A failure blocks nothing today, since releases are still published by hand.
Dispatch takes no inputs on purpose. Selecting the tag as the run's ref means GITHUB_REF_NAME carries the version, so it never travels through an interpolated string into a shell or a checkout ref — no injection surface is added. The workflow has zero ${{ }} interpolations inside run: blocks.
softprops/action-gh-release is pinned to 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 (v2 as of today). It holds contents: write, and a moving major tag is the exact shape a retargeted-tag supply-chain attack goes after.
Not in this PR
Whether releases should move to CI at all. That is the decision this unblocks, not one it makes: a CI-built release is more reproducible than a laptop build and is the precondition for build provenance, but the pipeline needs a validation run first.
🤖 Generated with Claude Code
Summary by CodeRabbit
- Chores
- Updated release automation to use the
anvil-v* tag format.
- Added support for manually initiated release runs.
- Improved release process documentation.
- Enhanced release action stability by pinning it to a specific version.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… action
The trigger was 'v*', which never matched an anvil release. Releases are
tagged anvil-v*; bare v* is the upstream ephemera runtime namespace this fork
deliberately keeps (CONTEXT.md, "Fork와 upstream 정책"). The workflow has run
zero times since it was added in June — every release so far was built on a
developer machine and uploaded by hand, which is also why build provenance has
nothing to attest today.
Being dead was not the whole problem. origin already carries v0.1.0 and v0.2.0
from before this workflow existed, and the fork policy has upstream tags moving
through the repo, so the next sync that pushed a v* tag would have fired this
and published an anvil release built from an upstream ephemera tag.
Adds workflow_dispatch so the pipeline can be exercised deliberately before a
real tag depends on it — the FULL variant runs debootstrap and produces a
~250 MB asset, neither of which has ever executed on a GitHub-hosted runner.
Dispatch deliberately takes no inputs: selecting the tag as the run's ref means
GITHUB_REF_NAME carries the version, so it never travels through an
interpolated string into a shell or a checkout ref. A failure blocks nothing
today, since releases are still published by hand.
Pins softprops/action-gh-release to a commit. It holds contents:write and a
moving major tag is the exact shape a retargeted-tag attack goes after.
Co-Authored-By: Claude Fable 5 <[email protected]>
coderabbitai
Bot
commented
Aug 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
@HardcoreMonk, you've reached your PR review limit, so we couldn't start this review.
Next review available in: 47 minutes
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
How can I continue?
After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.
To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.
How do review limits work?
CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.
For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.
Please refer docs for additional details.
Review details
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 3e3e4511-d128-4eef-8570-faccc78f59b7
📥 Commits
Reviewing files that changed from the base of the PR and between e1c4e24 and fd1e05f.
📒 Files selected for processing (1)
.github/workflows/release.yml
📝 Walkthrough
Walkthrough
The release workflow now uses anvil-v* tags, supports manual runs, documents the updated release process, and pins the GitHub Release action to a commit SHA.
Changes
Release workflow
| Layer / File(s) |
Summary |
Release trigger and action configuration .github/workflows/release.yml |
The workflow now responds to anvil-v* tags and manual dispatches. Its documentation describes the updated release process. The GitHub Release action uses a pinned commit SHA. |
Estimated code review effort: 2 (Simple) | ~10 minutes
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly summarizes the main release workflow trigger and action pinning changes. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/release-workflow-trigger
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 57-61: Update the Publish GitHub Release step’s
softprops/action-gh-release reference to a verified commit SHA for a supported
v3 release, replacing the current v2 SHA while retaining commit pinning and the
existing workflow permissions.
- Around line 22-25: Add a job-level guard in the release workflow before
checkout or build to validate that the manually selected ref is an Anvil version
tag matching the expected anvil-v* pattern. Ensure invalid branch refs cause the
job to stop before using GITHUB_REF_NAME in the build script or release action,
while preserving valid tag-based releases.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 344f79c9-200e-41dc-805c-6c53a29e4808
📥 Commits
Reviewing files that changed from the base of the PR and between 2f6121e and e1c4e24.
📒 Files selected for processing (1)
.github/workflows/release.yml
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…action
Both raised by CodeRabbit on #96.
workflow_dispatch lets the operator pick any ref, and the comment asking them
to pick a tag was the only thing keeping a branch out. On a branch
GITHUB_REF_NAME is the branch name, which build_release.sh stamps into the
artifact names and action-gh-release takes as tag_name — it defaults to
github.ref_name — so a dispatch on main would publish a release named after a
branch. The job now runs only for refs/tags/*, making that dispatch a no-op
rather than a mess to clean up.
The pin moves from v2 to v3.0.2. v2's last release was 2026-04 and the
maintained line has published twice since, so pinning a workflow that has never
run to an abandoned major would freeze it there. All four inputs this workflow
uses — files, generate_release_notes, fail_on_unmatched_files, tag_name — exist
in v3.
Co-Authored-By: Claude Fable 5 <[email protected]>
Code review
Found 2 issues, both fixed in this branch.
workflow_dispatch lets the operator select any ref, and a comment asking them to pick a tag was the only thing keeping a branch out. On a branch GITHUB_REF_NAME is the branch name, which build_release.sh stamps into the artifact names and action-gh-release takes as tag_name — it defaults to github.ref_name — so a dispatch on main would publish a release named after a branch. The job now runs only for refs/tags/*.
https://github.com/HardcoreMonk/anvil/blob/fd1e05f2c48ba39a1a1e00bd0ca63a7dd1c0f89f/.github/workflows/release.yml#L28-L36
- The pin was on
v2, whose last release was 2026-04 while the maintained line has published twice since. Pinning a workflow that has never run to an abandoned major freezes it there. Moved to v3.0.2; all four inputs this workflow uses — files, generate_release_notes, fail_on_unmatched_files, tag_name — exist in v3.
https://github.com/HardcoreMonk/anvil/blob/fd1e05f2c48ba39a1a1e00bd0ca63a7dd1c0f89f/.github/workflows/release.yml#L62-L70
Verified separately: the workflow has zero ${{ }} interpolations inside run: blocks, and the dispatch trigger takes no inputs, so the version reaches the shell only through GITHUB_REF_NAME.
Still true after this PR, and worth stating plainly: this pipeline has never executed. Validate it with a dispatch on a throwaway tag before a real release depends on it.
🤖 Generated with Claude Code
- If this code review was useful, please react with 👍. Otherwise, react with 👎.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|