-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot log in to GitHub actions #251
Comments
Same here:
Version: v0.26.1 |
It might be the git authenticaton configuration that might be the problem because I have also the problem to push workflow files in VS Code and in an external terminal. |
I see this issue when VSCode has a workspace open. If I open an individual project I have no issue.
Update: After testing with my VSCode workspace. I discovered the issue occurs when there is a folder in the workspace that has been |
The git authentication config was not the problem. I thought that the problem lied there because I've had problems pushing GitHub action workflow files from VS Code. When I finally set up the git auth config, I could push commits that had the github actions workflow files, and then I thought that the git auth config might be the solution to the Github actions extension too. But it was not. I'm greeted with no context in the output and could not connect to the Github API. |
Same issue with me. The GitHub Actions Output tab:
Few things worth mentioning:
For that org, the Output tab for GitHub (not GitHub Actions) says:
|
I seem to receive a similar, but not identical error in my GitHub Actions extension output:
Meanwhile my GitHub extension output is:
The GitHub Pull Requests and Issues extensions appears to work without issue. It is only GitHub Actions that fails, the same way as the initial issue. This is for an Enterprise org as well, however no GitHub Enterprise URI is required. When I click the "Refresh" button in the GitHub Actions extension, I can see it use the GitHub Authentication extension to successfully get the session:
|
I'm receiving a similar experience and similar output in the logs.
These are the messages I receive when my corporate VPN is running, but if I disable the VPN all is working fine. Access to github.com is working fine, along with my other vscode GitHub integrations, both with VPN and without. |
Same issue here with Github Enterprise and SAML Auth.
|
Experiencing the same issue on Windows, extension v0.26.2, vscode latest, no VPN, no enterprise. |
Probably not the same issue. In my case, clicking "Sign in to GitHub" prints this error in the Developer Tools console:
|
Same here
|
Same here on M1, extension v0.26.2. Already tried opening a repository folder or opening VS code without any project selected. Both presented the same issues. The first output is:
And every time I click on "Refresh" for the extension, I receive the following output:
|
I also have this same issue:
I have a Macbook with an Intel chip. Other GitHub extensions work fine, e.g. GitHub Copilot |
Same issue for me on Macbook Pro intel with Sonoma Version 14.2.1 (23C71).
|
Same issue. Macbook Pro M1 Pro, actually I have Github copilot working on my vscode, but error in Github Actions extension
|
I have found a solve to this issue. There is an extension in VS code called "win-ca" that is used to map local certifications into VS code including GitHub. This is for windows users only. For mac users, use "Mac CA VSCode". I was able to set the config of that extension to append certs (defaults to replace) and it now allows me to fetch the GitHub API when cloning a repository and using the GitHub Actions extension in VS code. My issue occurred only when I was on our companies VPN but works fine now with the extension I listed above. Windows: https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca |
I started experiencing this issue after I upgraded to The issue is present on both my M2 Mac (Sonoma I'm seeing the same traceback as others have shared: Error: Cannot fetch github context
at vt (/home/bryantfinney/.vscode-server-insiders/extensions/github.vscode-github-actions-0.26.2/dist/extension-node.js:2:1444927)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /home/bryantfinney/.vscode-server-insiders/extensions/github.vscode-github-actions-0.26.2/dist/extension-node.js:2:1626446
at s.h (/home/bryantfinney/.vscode-server-insiders/bin/8fa84589eef3538dbc763ff98dc7d5a8a0c56374/out/vs/workbench/api/node/extensionHostProcess.js:150:178999
|
I had same issue. |
I had the same issue, MAC CA VSCODE installation resolved my problem. |
This is what finally solved the issue for me. Thank you so much for sharing the extension. Literally all I did was install Mac CA VSCode and restart, and the GitHub Actions extension starting working as epected for the first time in ages! |
Experiencing this issue as well on a Mac. Tried uninstalling and reinstalling but it didn't work. The other GitHub extensions are working fine, so it seems specific to this one. |
Same issue here. The win-ca extension didn't help me. |
and then on every attempt to refresh
|
Using VS Code 1.87.2 on Windows 10
I can confirm that the GitHub credentials are good as the "GitHub Pull Requests" extension works fine with the same GitHub Authentication account. |
After a vscode restart this morning. the extension asked me to reauth because SAML enforcement is enabled, and that did the trick. I did enable Experimental System Certificates v2 yesterday. Maybe that was the missing link. |
Enabling Experimental System Certificates v2 (in settings) did not fix it for me. This is still the only GitHub extension that doesn't auth for me |
I am experiencing this issue too. The Mac CA VSCode extension didn't work. |
I think this may be a duplicate of: #39. The Mac CA VSCode seems to help with the sidebar, but the |
thanks mechaniccoder. |
This worked for me. |
Anyone still having this problem, this solved it for me in Windows after everything else here did nothing: |
this worked for me on mac os with an SSO login. Thanks!! |
For me the solution was:
|
Thankyou! Was banging my head all morning on this one! Definetely feels like this is a bug with the extension 👍 |
Describe the bug
It is not possible to log in to Github actions. Even if I try to with the refresh button, it won't work.
To Reproduce
Steps to reproduce the behavior:
Unable to connect to the GitHub API, please check your internet connection.
Cannot fetch github context Error: Cannot fetch github context
Expected behavior
I expected to be logged in to my GitHub account and se my actions in the repository I'm working on
Screenshots
From the output log
From the extension
Extension Version
v0.26.1
The text was updated successfully, but these errors were encountered: