createRef arbitrarily fails depending on which commit is referenced #136777
Replies: 3 comments
-
|
💬 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.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
It looks like the
createRefmutation (and the REST Equivalent) sometimes fail with an error message that indicates that permissions are not configured correctly.I've put together a little POC in a repo whose tests were previously relying on being able to create refs of old commits that are part of the history of the default branch: https://github.com/s0/ghcommit/actions/runs/10548442364/job/29222358910
In the PoC, you can see that the mutation succeeds when referencing the most recent commits, but fails for older commits.
The error messages that are returned seem to depend more on the token type than anything else, but in all cases, the only thing that differs is which commit is referenced:
CreateRef"This can be reproduced locally by:
demonstrate-createref-bug.envfile with the appropriate config (see.env.example)pnpm install && pnpm build && pnpm test:integration ghbugBeta Was this translation helpful? Give feedback.
All reactions