Scan a Github/Gitlab

Modified on Tue, 10 Oct 2023 at 11:49 AM



Prerequisites 
  • You must have a valid Github/Gitlab/Azure account


1. Github/Gitlab Cloud




Step 1: Sign in or Integrate Github/Gitlab 

Sign in with Github or Gitlab (or integrate them from the integration page if you are signing up by email or with any other IDP)



Step 2: Scan Repositories 
If you are logged in with a GitHub/Gitlab account or integrate the accounts, it will redirect you to the Github/Gitlab Scan Page where you will see all of your repositories (both public and private). You can select any repository (or multiple) and run the scans.




Step 3: Scan any public repository. 

You can scan any public Github or Gitlab repository using the input form (check below). Scan your public GitLab repositories in the marked option




2. Github/Gitlab Enterprise 

Step 1: Contact CD Support to enable 

By default, the option for Github/Gitlab enterprise is disabled. You need to contact CloudDefense support at support@clouddefense.ai to enable the option. Please email us with these details:
  • Organization Name 
  • Account email address


How to Get GitHub Enterprise link and Generate Access Token:


  • 1. Enterprise Token:
  • To integrate GitHub enterprise users must have an enterprise account. If the user have an enterprise account user can see all enterprises here https://github.com/settings/enterprises



Clicking on the enterprise user will get an enterprise link. If the user doesn't have a GitHub enterprise, the user can easily open an enterprise account from the link below. https://github.com/enterprise


    2. Access token 
To integrate GitHub enterprise users need access tokens. To find the access token user need to go to Setting > tokens Here is the URL : https://github.com/settings/tokens
After creating an access token, the user must copy and paste it into the enterprise access token field.



Step 2: Configure 

Once your account is ready for integration, you will see the options to provide details as below:


1.Enterprise Link  

2.Enterprise Access Token of Github and Gitlab


How to Get Gitlab Enterprise link and Generate Access Token:



1.Enterprise link :
To integrate Gitlab enterprise users must have an enterprise account. If the user have an enterprise account user can see all enterprises/groups here https://gitlab.com/dashboard/groups


Clicking on the enterprise user will get an enterprise link. If the user doesn't have any Gitlab enterprise, the user can easily open an enterprise account from the link below. https://github.com/enterprise

2. Access token:
To integrate Gitlab enterprise users need access tokens. To find access token user need to go from profile dropdown Preference > Access token



Here is the URL : https://gitlab.com/-/profile/personal_access_tokens After creating the access token users need to copy that and paste it to the enterprise access token field.


Once you provide the required information, click configure.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article