Skip to content

Conversation

@witmicko
Copy link
Contributor

@witmicko witmicko commented Feb 9, 2026

Note

Low Risk
Low risk CI-only change; main risk is unintended releases or missed publishes if the new is-release conditions/action output differ from v1.

Overview
Updates the is-release gate in .github/workflows/main.yml to use MetaMask/action-is-release@v2 and renames the job for clarity.

Release detection is now run on all push events (instead of additionally filtering by commit author), relying on the action’s IS_RELEASE output to decide whether to run publish-release.

Written by Cursor Bugbot for commit 39a48a0. This will update automatically on new commits. Configure here.

@witmicko witmicko requested a review from a team as a code owner February 9, 2026 17:02
@witmicko witmicko changed the title Mich update release action chore: update release action Feb 9, 2026
Copy link

@cursor cursor bot left a comment

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 and found 1 potential issue.

if: github.event_name == 'push' && startsWith(github.event.head_commit.author.name, 'github-actions')
name: Determine whether this is a release merge commit
needs: all-jobs-pass
if: github.event_name == 'push'
Copy link

Choose a reason for hiding this comment

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

Removed commit author check weakens release trigger security

Medium Severity

The is-release job's if condition removed the startsWith(github.event.head_commit.author.name, 'github-actions') guard that previously ensured only commits authored by the github-actions bot (from the create-release-pr workflow) could trigger a release. Now any push to main is evaluated by action-is-release@v2, so a contributor could craft a PR (e.g., bumping package.json version or matching the commit message pattern) and trigger a release upon merge. As noted in the PR discussion, this reduces defense-in-depth around the release pipeline.

Fix in Cursor Fix in Web

@witmicko witmicko merged commit 1cdbc3b into main Feb 10, 2026
20 checks passed
@witmicko witmicko deleted the mich-update-release-action branch February 10, 2026 10:08
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.

2 participants