Skip to content

[Internal] Fix slack-message draft release permissions + update model#4119

Merged
Wauplin merged 1 commit intomainfrom
fix/release-slack-message-permissions
Apr 20, 2026
Merged

[Internal] Fix slack-message draft release permissions + update model#4119
Wauplin merged 1 commit intomainfrom
fix/release-slack-message-permissions

Conversation

@hanouticelina
Copy link
Copy Markdown
Contributor

@hanouticelina hanouticelina commented Apr 16, 2026

The slack-message job failed because it had contents: read permissions and couldn't list draft GH releases created by the release-notes job. Upgrade to contents: write so gh release list can see drafts.

i was looking for separate releases permission scope butcontents: write is the minimum to access draft release notes, cf: cli/cli#3037

Also update RELEASE_NOTES_MODEL to zai-org/GLM-5.1.


Note

Medium Risk
Workflow now grants the slack-message job broader contents: write permissions, increasing the blast radius of a compromised job/token; functional changes are otherwise limited to switching the AI model used for generated text.

Overview
Fixes the prerelease slack-message job by elevating its GitHub Actions permissions to contents: write, allowing gh release list to see draft releases created earlier in the workflow.

Updates the OpenCode RELEASE_NOTES_MODEL used for both GitHub release-note generation and Slack announcement generation from huggingface/MiniMaxAI/MiniMax-M2.5 to zai-org/GLM-5.1.

Reviewed by Cursor Bugbot for commit 821637d. Configure here.

The slack-message job failed because it had `contents: read` permissions
and couldn't list draft GitHub releases created by the release-notes job.
Upgrade to `contents: write` so `gh release list` can see drafts.

Also update RELEASE_NOTES_MODEL to zai-org/GLM-5.1.
@hanouticelina hanouticelina requested a review from Wauplin April 16, 2026 12:50
@bot-ci-comment
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thank you!

@Wauplin Wauplin merged commit c02815a into main Apr 20, 2026
19 of 21 checks passed
@Wauplin Wauplin deleted the fix/release-slack-message-permissions branch April 20, 2026 09:42
@Wauplin
Copy link
Copy Markdown
Contributor

Wauplin commented Apr 20, 2026

I opened #4119 as a follow-up to make the RELEASE_NOTES_MODEL configurable via an env variable directly in github settings so we don't have to update the code to bump model versions.

@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.12.0 release.

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