Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 18, 2025

This PR adds the required contents: write permission to workflow jobs that perform git push operations, ensuring they have sufficient permissions to push changes to the repository.

Changes Made

Added contents: write permissions to 8 workflow jobs across 6 workflow files:

prepare-release-branch.yml:

  • create-pull-request-against-release-branch job
  • create-pull-request-against-main job

package-prepare-release.yml:

  • create-pull-request-against-release-branch job
  • create-pull-request-against-main job

package-prepare-patch-release.yml:

  • prepare-patch-release job

backport.yml:

  • backport job

package-release.yml:

  • release job

prepare-patch-release.yml:

  • prepare-patch-release job

All permissions include the required trailing comment # required for pushing changes as specified in the issue requirements.

Validation

  • ✅ All workflows with git push operations now have contents: write permissions
  • ✅ YAML syntax validated for all modified files
  • ✅ Permissions added only to jobs that actually perform git push operations
  • ✅ No unnecessary permissions added to other jobs

Fixes #30.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: trask <218610+trask@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Fix minimum token permissions if needed Fix minimum token permissions for workflows that perform git push Jul 18, 2025
@Copilot Copilot AI requested a review from trask July 18, 2025 16:22
Copilot finished work on behalf of trask July 18, 2025 16:22
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.

Fix minimum token permissions if needed
2 participants