-
-
Notifications
You must be signed in to change notification settings - Fork 5
chore: update release action #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
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' |
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.
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.


Note
Low Risk
Low risk CI-only change; main risk is unintended releases or missed publishes if the new
is-releaseconditions/action output differ from v1.Overview
Updates the
is-releasegate in.github/workflows/main.ymlto useMetaMask/action-is-release@v2and renames the job for clarity.Release detection is now run on all
pushevents (instead of additionally filtering by commit author), relying on the action’sIS_RELEASEoutput to decide whether to runpublish-release.Written by Cursor Bugbot for commit 39a48a0. This will update automatically on new commits. Configure here.