Skip to content

chore(ci): Expose mutable release tag X and X.Y to free user from tagging a full version - #14

Merged
ducdetronquito merged 2 commits into
mainfrom
feature/sord-2178
Sep 30, 2026
Merged

ducdetronquito merged 2 commits into
mainfrom
feature/sord-2178

Conversation

@ducdetronquito

@ducdetronquito ducdetronquito commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Changes production release automation (force-pushed tags and overwritten release assets); mis-tagged releases are skipped, but a bad tag pattern could still publish wrong binaries to mutable channels.

Overview
Adds mutable GitHub releases so installs can track the latest patch within a major or minor line (swcli-X and swcli-X.Y) instead of only pinning swcli-X.Y.Z.

On each non-prerelease swcli-X.Y.Z release, a new mutable-releases job downloads the built assets, force-moves the major/minor tags to the release commit, creates those releases if missing, and re-uploads binaries with --clobber. The release workflow also bumps several Actions (checkout v7, cache v6, mise-action v5, action-gh-release v3); PR checks get the same cache/mise bumps.

The README gains an Install section with curl examples for full, minor, and major mutable download URLs.

Reviewed by Cursor Bugbot for commit a078333. Bugbot is set up for automated code reviews on this repo. Configure here.

@ducdetronquito
ducdetronquito requested a review from a team September 30, 2026 19:10
@ducdetronquito
ducdetronquito requested a review from a team as a code owner September 30, 2026 19:10
@ducdetronquito ducdetronquito self-assigned this Sep 30, 2026
@ducdetronquito
ducdetronquito merged commit 9f08df5 into main Sep 30, 2026
2 checks passed
@ducdetronquito
ducdetronquito deleted the feature/sord-2178 branch September 30, 2026 19:14

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a078333. Configure here.


for version in "$major" "$major.$minor"; do
mutable_tag="swcli-$version"
git push --force origin "$GITHUB_SHA:refs/tags/$mutable_tag"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutable tags fail on workflow changes

High Severity

Force-pushing mutable tags with the default GITHUB_TOKEN is rejected when the release commit changes files under .github/workflows/. The job only grants contents: write, so swcli-X and swcli-X.Y are not updated and consumers stay on stale binaries.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a078333. Configure here.

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