Bug Report: Publishing a release via GitHub actions fails for repos created on 2025-11-25 #180369
-
Select Topic AreaBug BodyWhen trying to create a release from a GitHub action job via a step like this: steps:
- name: test release
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create test --title test --notes testIt fails for repos newly created today, while the very same action works as expected on pre-existing repos created in the past. Despite the permissions of the Example:
Looking through the repo settings of both I cannot spot any differences in permissions or similar. Performing the release creation manually via PAT or the UI works as expected for both types of repos, only publishing a release with the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments · 8 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This is a duplicate of this discussion It first came up as an issue within the GITHUB_TOKEN in actions, but also appears to not work in the cli. |
Beta Was this translation helpful? Give feedback.
-
|
Hey Friend 👋 What’s Going On?
✅ How to Fix It?
If you do that, the gh release create ... command in your action should be able to push the release without the 422 error. |
Beta Was this translation helpful? Give feedback.
-
|
The issue is now fixed. |
Beta Was this translation helpful? Give feedback.

The issue is now fixed.