Skip to content

fix: add permissions for reusable publish-preview workflow#8235

Merged
cryptodev-2s merged 1 commit into
mainfrom
fix/preview-workflow-permissions
Mar 18, 2026
Merged

fix: add permissions for reusable publish-preview workflow#8235
cryptodev-2s merged 1 commit into
mainfrom
fix/preview-workflow-permissions

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented Mar 18, 2026

Explanation

The reusable publish-preview workflow from github-tools requires contents: read (checkout) and pull-requests: write (PR comment). MetaMask's org restricts default token permissions to read-only, so these must be explicitly declared by the caller.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Low risk: only updates workflow permissions, with no product code or runtime logic changes.

Overview
Ensures the reusable publish-preview GitHub Actions workflow can run under restricted org defaults by explicitly granting contents: read (checkout) and pull-requests: write (PR commenting) permissions.

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

@cryptodev-2s cryptodev-2s requested a review from a team as a code owner March 18, 2026 17:08
@cryptodev-2s cryptodev-2s self-assigned this Mar 18, 2026
@cryptodev-2s cryptodev-2s enabled auto-merge March 18, 2026 17:09
@cryptodev-2s cryptodev-2s added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 865b292 Mar 18, 2026
322 checks passed
@cryptodev-2s cryptodev-2s deleted the fix/preview-workflow-permissions branch March 18, 2026 17:19
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