Issue Signing in to use GitHub Copilot - github

After attempting to sign into GitHub Copilot in VS Code a prompt pops up "The extension 'GitHub Copilot' wants to sign in using GitHub" and it gives me the option "Allow" or "Cancel".
After allowing another prompts states "Allow an extension to open this URI?".
After clicking "Open" an error message says
GitHub Copilot could not connect to server.
Extension activation failed: "network error".
On occasion the actual approval page pops up and I approve permissions, then get a popup in vs studio, click open then it fails on "Network Error"
How do I go about resolving this issue?
I tried the above. Was expecting to be signed into GitHub copilot after approval.

Check first if the issue persists.
There was a recent incident with Copilot
We see authentication failures for a small percentage of users.
We are investigating the root cause and will update as we learn more.
It is resolved, but you might still see some side-effect.

Related

Can I trust Git Credential Manager by GitCredentialManager?

I've used Github desktop for a couple of years. Today it will suddenly would not log in to my account, although I have not changed password lately. When I click login with browser I'm taken to a page that says "Git Credential Manager by GitCredentialManager wants to access your account" and that I should authorize full read and write access.
Googling this has not given me any clues to why this would suddenly happen. Do I have to start using this service to login to Github desktop or could this be a phishing attempt?
I was in the same boat. After Googling a bit, I found this post on the GitHub blog:
https://github.blog/2022-04-07-git-credential-manager-authentication-for-everyone/
Seems this is an official replacement for handling credentials in GitHub and Git Desktop.

'This user account is blocked. Contact registration#vercel.com'

Clicking 'Continue with GitHub' fails
I am attending the Udemy course
React - The Complete Guide (incl Hooks, React Router, Redux)
I have followed the instructions given there.
Video number 347 (at 9:14) instructs me to go to
https://vercel.com/signup and then click Continue with GitHub,
which I did – several times.
But I always get the same message:
This user account is blocked. Contact registration#vercel.com for
more information.
My question(s)
Why did this happen? – How do I get unblocked and proceed?
My ultimate goal is to automatically deploy the NextJS project at
https://vercel.com via GitHub.
Clicking 'Continue with Email →' succeeds
After sending a few emails back and forth trying to get support, I
didn't feel much wiser, but I decided to click on Login in the
top-right corner, and then on Continue with Email →.
After confirming my email address, I got a message saying
Sign Up Successful but then nothing more happened.
So I did it once more, and this time I automatically got redirected to
the Vercel dashboard, https://vercel.com/dashboard.
Getting to the dashboard feels like a step forward, but I still don't
know how to proceed.
1
References
React - The Complete Guide (incl Hooks, React Router, Redux)
https://vercel.com/login/email
1
Going back and clicking 'Continue with GitHub' still displays the
same old message:
This user account is blocked. Contact registration#vercel.com for
more information.
Why did this happen? – How do I get unblocked and proceed?
My ultimate goal is to automatically deploy the NextJS project at
https://vercel.com via GitHub.
Since you managed to get unblocked, I will focus on building and
deploying the project at https://vercel.com.
Below I describe what worked for me.
1. Install the Vercel app at GitHub
I went to https://github.com/apps/vercel and clicked Install.
Doing so took me to a
https://github.com/apps/vercel/installations/new/permissions link.
Here too, I clicked the Install button – located in the lower-left
part of the page.
1
2. In the Vercel dashboard, get the project's code from GitHub
I was then redirected to a page at https://vercel.com/ saying
Installation Approved.
Here I clicked Go to Dashboard which took me to the Vercel
dashboard, https://vercel.com/dashboard – as shown in the last image
of your question.
In the dashboard, I clicked Create a New Project which took me to
https://vercel.com/new, with the headline
Let's build something new.
The top-most git repository, nextjs-meetups-demo, is the site I
wanted to deploy.
So I clicked its Import button.
3. Configure and deploy the project
I was now taken to a https://vercel.com/new/import page with the
headline Configure Project.
Since I was happy with all the default settings, I simply clicked
Deploy.
After building for 51 seconds, I was congratulated for having deployed
my NextJS site.
Clicking the image redirected me to the React Meetups site, finally
proving it was deployed.
2
References
Install the Vercel app at GitHub
The Vercel 'build something new' page
1
This apparently gives Vercel access to my repositories at GitHub so
that it can build and deploy any of my projects.
2
Unfortunately, my site at Vercel does not display any newly added
meetups – even though I can see in MongoDB that a meetup has been
created.
This would call for a whole new Stack Overflow question, so I won't
delve into it here.

Heroku/Github set up connection issue?

I am doing an exercise where I've a forked repository, and started a heroku account, did "create a new app" and "deploy with github" but when I go to connect to github, a red error message pops up saying "Error: remote could not connect or was closed."
I have had no problems connecting github to other services, and I've found other people with connection issues, but more along the lines of "why isn't my app working" and mine is" why can't i link the two so I can continue with this exercise?"
Any help is greatly appreciated.
I've followed the instructions after setting up a heroku account, having an app repository fork on github, confirming my email, "create a new app" option on heroku, and on the ensuing "deploy" tab, clicked on the "connect github" option. I expected it to work.
Yes this is a known issue and caused by some data breach related to Github Authorization. Security measures have taken place and Github authorization has been disabled until further notice. Please see
https://github.blog/2022-04-15-security-alert-stolen-oauth-user-tokens/
And based on this ongoing incident,
As reported yesterday, revocation of all OAuth tokens from the Heroku
Dashboard GitHub integration is complete. Until further notice, we
will not issue OAuth tokens from the Heroku Dashboard. These actions,
based on our current understanding of the issue, should prevent
unauthorized access to your GitHub repositories.
We will continue to work with GitHub to provide additional guidance on
how to review your GitHub logs for evidence of exfiltration or
malicious activity. Please reach out to security#salesforce.com with
any information that may assist us with our ongoing investigation.
Please continue to visit status.heroku.com for the latest updates.
If you still want to deploy, you can switch from GitHub to Git quite easily, please read this: https://help.heroku.com/CKVOUPSY/how-to-switch-deployment-method-from-github-to-heroku-git-with-all-the-changes-app-code-available-in-a-github-repo

GitHub Copilot not activation

GitHub Copilot show this error
GitHub Copilot could not connect to server. Extension activation failed: "User not authorized"
But I have authorized on GitHub
Summary:
If you are trying GitHub copilot for the first time, this error indicates that you are not part of the beta invite list. What you can do is you can join the waitlist (https://github.com/features/copilot/signup) and wait for your chance to try the beta.
If you have already got the invitation, then there was an error connecting to api.github.com to request a token to use the Copilot service.
Full Discussion: https://github.com/github/feedback/discussions/7707
Update: Github Copilot is free until August 22, 2022
(https://github.com/github-copilot/tp_signup)
If you were previously using the Copilot limited invitation access,
as of June 23, mine got deactivated because Github Copilot will be free only until August 22.
I had to activate my free trial here
To solve this issue follow the below steps.
-First, go to your Github account.
-Go to setting select copilot and click on enable copilot.
-Then select Continue without payment details
-Then allow and tick the check box.
-Now go to IDE and uninstall copilot and again install. then sign in to GitHub.
This is the scenario that happened to me.
I have multiple github accounts logged into my vscode.
In that only one account has access to the GitHub Copilot.
So in order to give access to the token for the subscribed GitHub copilot, you should go to
1. Click the Accounts section at the bottom left side of the sidebar with a profile icon
2. Choose the GitHub profile you need to deactivate copilot.
3. Click Manage trusted extensions
4. Untick GitHub copilot/nightly.
If you already got the invitation:
Try signing out of your GitHub account from your IDE.
Disable and re-enable the Copilot extension.
There is another open-source alternatives to it called CodeGeeX. The code is available at https://github.com/THUDM/CodeGeeX. Check out the VSCode extension at https://marketplace.visualstudio.com/items?itemName=aminer.codegeex
Also, the model weights can be applied and download.

Why is the Build trigger complaining about Webhooks missing

It is time we enabled the Continuous Integration of the build pipeline, so when I went to do just that, i am seeing something strange...
The trigger appears to be enabled? yet theres a message suggesting webhooks are missing to the repo and need to be restored. When i click restore, it fails!
The remote repository’s webhooks are missing or incorrect.
An error occurred while restoring the trigger’s webhook: Could not recreate the subscription. An error was encountered while creating the existing subscription: Unable to configure a service on the selected Bitbucket repository. Bitbucket returned the error 'Your credentials lack one or more required privilege scopes.'.
I asked the admin of the repo to try restoring it because i thought maybe this is a permissions issue, and even he got the error...
This is what the repository settings page shows for both myself and the repo developer/admin...
Do we have to add a webhook manually on bitbucket?
After debugging the issue further with the developer, it appears the app password we created in bitbucket may not have had the "Webhooks" option enabled.
Unfortunately, we cannot edit app passwords in Bitbucket, which is a bad constraint but whatever.
We ended up just creating a new app password, and enabled Webhooks permissions this time, then i updated the service connection with this new app password, and wala, it worked!