Skip to content

Fix 4.x: Add git push permissions to release workflow - #1709

Merged
ricardozanini merged 1 commit into
4.xfrom
fix-4x-workflow-permissions
Sep 21, 2026
Merged

ricardozanini merged 1 commit into
4.xfrom
fix-4x-workflow-permissions

Conversation

@ricardozanini

Copy link
Copy Markdown
Collaborator

Fixes the permission error when pushing release tags and commits.

Problem

The release workflow fails at the git push step with:

remote: Permission to open-workflow-specification/sdk-java.git denied to github-actions[bot].
fatal: unable to access: The requested URL returned error: 403

Solution

  • Add permissions: contents: write at the workflow level
  • Explicitly pass token: ${{ secrets.GITHUB_TOKEN }} to the checkout action

This allows the GitHub Actions bot to push commits and tags back to the repository.

Testing

After merge, the next release should successfully push tags and version bump commits.

Copilot AI lite review requested due to automatic review settings September 21, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Updates the release workflow to allow GitHub Actions to push release commits and tags.

Changes:

  • Grants contents: write permission.
  • Configures checkout with GITHUB_TOKEN.
File Summary
.github/​workflows/​release.yml Enables authenticated release pushes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The workflow needs contents: write permission to push tags and commits.
This fixes the "Permission denied" error when pushing release tags.

Signed-off-by: GitHub Action <action@github.com>
@ricardozanini
ricardozanini force-pushed the fix-4x-workflow-permissions branch from eb1e868 to d6f0b92 Compare September 21, 2026 18:15
@ricardozanini
ricardozanini merged commit f2ab776 into 4.x Sep 21, 2026
3 checks passed
@ricardozanini
ricardozanini deleted the fix-4x-workflow-permissions branch September 21, 2026 18:28
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.

3 participants