Cypress CI integration with GitHub - automation

Can someone help if I understand why I can't connect cypress with Github? I get this 422 error message whenever I request access to connect cypress to Github.

There can be multiple reasons for the above 422 error(permission error) that you get while accessing github from cypress:
you do not have access to the github repo you are trying to access, check with your Github admin
if you have a particular Team(Dev/QA/DevOps/PM etc) access to github account of your org, check with your Github admin to see if above repository has been added to your Team for access.

Related

How to Allow Access to a user on a private repo via Api on Github?

There's a way to give access to a Github user passing his username or id to some API?
An another solution to automate access to the repo is welcome too.
Thanks!
I couldn't find any endpoint in the docs :/

Access not given while integrating cypress dashboard with bitbucket

I tried integrating cypress dashboard with bitbucket and when i click the button below
It redirects me to this page instead of linking it up with the bitbucket even though i have right and correct access to the bitbucket.
Just to be sure, I tried creating new project in cypress dashboard and integrate it with bitbucket as an owner of the repo but still I face the same issue.
PS: I was trying to implement parallelization for end to end testing integrating cypress dashboard with bitbucket.
Can you guys please help me out. Been stuck to this for days now.

Run automation tests in front of GitHub UI

My company implemented a plugin for GitHub that scans repository code and warns about security violations.
I need to implement UI automation tests for this plugin so I manually created a dedicated user in GitHub and also created a repository with some files.
In my tests, I need to log in to GitHub via UI, which means navigating to https: https://github.com/, entering username and password, and clicking on the sign-in button.
Things work fine on my local machine but when trying to run it from Jenkins machine Github sends a device verification code to my Gmail account that is connected to the GitHub user and the test failed.
This happens although I disabled the Two-factor authentication mechanism in my GitHub account.
I’m wondering what is the best way to solve this issue.

"Repository not found or permission denied" when creating AWS Codebuild Repository

We are trying to create a codebuild in aws and have a private github repository in github, while creating the codebuild section i am getting the Repository not found or permission denied error after clicking on create button in code build section.
has someone came across this issue, if so can you please suggest.
Thanks in Advance.
I had this issue because I was using a low-privilege account to access GitHub. CodeBuild needs admin access to the repository in order to create webhooks, so the solution for me was to grant the user admin access to the repo in question (via GitHub, in the repo's Settings page), create the CodeBuild project, then set the user back to read-only.
Try:
CodeBuild > {project} > Sources > Disconnect from GitHub, then Reconnect with a GitHub account where your code repository is.
CodeBuild can only hold one GitHub authentication per account per region.

Auth problem with creating Cloud Build Triggers

I seem to have gotten my Google/Github authentication into some kind of bad state. I am attempting (repeatedly) to create a Github build trigger by the following steps:
From https://console.cloud.google.com/cloud-build/triggers click
"Create trigger"
Select Github and check the consent box.
Sign in to my Github account. This succeeds and I see the list of my repositories and my organization's repositories.
No matter what repository I select, I see this error:
There's a problem at our end
I've tried include signing out and in of my Github and Google accounts (including clearing all cookies) but nothing helps. I also asked another administrator to create the trigger and he sees the same error, which implies the issue must relate somehow between Google and Github and isn't specific to my personal account?
If anyone has seen this before or has any suggestions it would be a big help. Thanks!