Error: Git author must have access on Vercel to create deployments

I have a NextJS project that I’m deploying to Vercel. I had been steadily contributing and deploying happily for quite some time until today. The current issue that I’m having is that I’m using Github Copilot to address some of my issues. As I said, this was working just fine until recently I started getting issues saying that the Copilot email must have access to the project in order to create deployments.

Error: Git author ``+Copilot@users.noreply.github.com`` must have access to the team some-team’s projects on Vercel to create deployments.

Is it true that I’m going to have to upgrade to Pro just so that I can make use of Github’s Copilot?

A point of clarification. I have several commits co-authored by myself and co-pilot that have deployed successfully today.

Hey, @n14little! Welcome :waving_hand:

This happens because Vercel checks the git commit author, and GitHub Copilot uses +Copilot@users.noreply.github.com, which isn’t recognized as a valid team member.

You can fix this by configuring Copilot to use your own email so commits are attributed to you, or by manually committing Copilot’s changes with your git config.

Upgrading to Pro (to add the Copilot email as a team member) is possible but usually unnecessary, just making sure commits come from your verified email should resolve it.

@pawlean how do I do this in Github?

It doesn’t seem to be possible.

Try the following:

# set your identity globally
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

# verify
git config --global user.name
git config --global user.email

I cannot for the life of me find where I can update this in GitHub.

To be clear, the issue is when I create an issue in GitHub, assign it to Copilot and then try to merge the changes that the GitHub Copilot Agent made. These are not commits that are coming from my local machine. They’re commits that GitHubs Copilot Agent made on my behalf.

  1. Create new issue
  2. assign issue to Copilot
  3. Copilot opens a draft PR with proposed changes to the issue
  4. Merge PR
  5. Vercel rejects because I’m not the author
1 Like

How does that change the user.name and user.email that a Copilot agent uses in PR?

I think it only changes the user.name and user.email for me when I commit locally?

@n14little you said:

Is it true that I’m going to have to upgrade to Pro just so that I can make use of Github’s Copilot?

@n14little, unfortunately, adding the user via Pro plan doesn’t even work anyway!

The reason is that the ‘+Copilot@users.noreply.github.com’ email receives a ‘confirm join Vercel team’ email, which of course can never be clicked.

So it can’t be added to the team.

@pawlean is there any way for me, as admin, to add this user without confirm requirement?