GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: publish releases as immutable (draft, attach, then publish) by cmpham · Pull Request #29 · anduintransaction/anduin-plugin

Conversation

@cmpham

@cmpham cmpham commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Why

A customer asked whether our plugin release tags are protected so they cannot change after release. Today nothing enforces it: the repo has no tag ruleset and GitHub's immutable releases setting is off. This PR makes the release pipeline compatible with that setting so it can be turned on; the setting itself is a repository setting, enabled separately after merge.

What changes

  • release.yml creates the GitHub Release as a draft with every asset, checks the attached asset names against the build, and only then publishes (--draft=false --latest). A re-run finishes a leftover draft; on a published release it is a no-op when every asset is present and otherwise fails with "release the next patch version" (a published release cannot gain assets, and a deleted release's tag name can never be reused). When the published release reports isImmutable, the notes are rewritten with the gh release verify-asset command.
  • guide.yml removed. It re-uploaded the admin guide PDF to the already-published release on every guide change, which immutability rejects. The PDF is attached at release time only; a guide fix ships with the next release. The stable releases/latest/download/...pdf link is unchanged.
  • check.yml renders the guide on PRs so a broken guide is caught before a release.
  • scripts/release-notes.py gains --immutable and rejects unknown flags.
  • CLAUDE.md / README.md describe the new flow and the burned-version rule.

The workflow behaves identically whether or not the setting is on, so merge order does not matter.

Scope note

Immutable releases lock only the vX.Y.Z tag that carries the Release. The vX.Y.Z-eu tag has no Release, so it is protected only by a tag ruleset on refs/tags/v* (restrict updates and deletions; creation must stay open because the workflow pushes -eu with GITHUB_TOKEN, which cannot bypass rulesets). That ruleset is a separate repo-settings change.

Verification

  • Both workflow files parse as YAML and every run: block passes bash -n.
  • scripts/build-eu-plugin.sh --check passes.
  • The release-state and asset-comparison shell was exercised read-only against the live v0.10.0 release (published, assets match) and a nonexistent tag (none).
  • release-notes.py output checked with and without --immutable, and with a bogus flag (rejected).
  • Not verified: the publish path of release.yml runs only on a v* tag push, so it has not executed end to end. The first release after merge is the real test.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cmpham @claude
ci: publish releases as immutable (draft, attach, then publish)
193be6a
GitHub's immutable-releases setting locks a release's tag and assets at
publish time, so nothing may be uploaded to a published release. The
release workflow now creates the Release as a draft, verifies that every
asset is attached, and only then publishes it. A re-run finishes a
leftover draft, is a no-op on a published release that already holds
every asset, and otherwise fails telling the operator to release the
next patch version (a deleted release's tag name cannot be reused).

The admin guide PDF is therefore attached only at release time: the
guide workflow, which re-uploaded the PDF to the published release on
every guide change, is removed, and the check workflow renders the guide
on PRs so a broken guide is caught before the release. When the
published release reports itself immutable, the notes gain the
`gh release verify-asset` command so customers can check a download
against GitHub's attestation.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@cmpham
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.