git checkout REDACTED error #187279
-
Select Topic AreaBug BodyI get error trying to creare a PR wit copilot coding agent. The message error is : Copilot stopped work on behalf of fdambrosio due to an error [1 hour ago] The new branch was created from the agent. The log git error is the following: $ git rev-parse --abbrev-ref HEAD HEAD Call to command I need support, thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
💬 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.
-
|
Hey friend, I just hit this issue and adding permissions to read the repo to my agent file did the trick, name: Copilot Setup Steps
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @truggeri ! Where I have to add this permissions? Which files and location? |
Beta Was this translation helpful? Give feedback.
-
|
thank you @truggeri it works! |
Beta Was this translation helpful? Give feedback.
In my case, I have it in this file
.github/workflows/copilot-setup-steps.ymlwhich is a special file used to setup copilot.