ci: grant write permissions for changelog preview workflow#3722
Merged
Conversation
semantic-release dry-run verifies git push to develop; sticky PR comments need pull-requests write. Job-level scopes avoid widening other workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
π This PR is included in version 9.6.1 π The release is available on:
Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes
generate_changelog_previewjob failure on release PRs (e.g. #3721) caused by least-privilege workflow permissions.yarn extract-changelogruns semantic-release in dry-run mode, which still executesgit push --dry-runagainstdevelop. With onlycontents: read,github-actions[bot]is denied:Also grants
pull-requests: writeformarocchino/sticky-pull-request-comment@v3.Changes
Add job-level permissions on
generate_changelog_preview:contents: writeβ semantic-release git push verificationpull-requests: writeβ sticky PR changelog commentWorkflow-level
contents: read/pull-requests: readremain as the default for any future jobs.Test plan
Changelog previewworkflow passes on develop β main release PRMade with Cursor