Secure GitHub with Mondoo
Continuously scan GitHub organizations and repositories for misconfigurations and vulnerabilities.
Mondoo continuously scans a GitHub organization or individual repositories for misconfigurations and vulnerabilities. Deploy the integration once and Mondoo keeps assessments up to date as repos change.
To scan Kubernetes manifests, Terraform configurations, or Docker containers inside a GitHub Actions workflow, read Scan in GitHub Actions instead.
Prerequisites
- Editor or Owner access to the Mondoo space
- Access to a GitHub organization or repository
Create a GitHub personal access token
A personal access token gives Mondoo permission to read GitHub resources on your behalf.
-
Log into GitHub. Verify your email if you haven't already.
-
Select your profile photo in the top-right corner, then Settings.
-
In the left sidebar, select Developer settings, then Personal access tokens > Tokens (classic).
-
Select Generate new token > Generate new token (classic).
-
Under Note, describe the token's purpose (for example,
Mondoo security scan access). -
Set an Expiration.
-
Under Select scopes, check:
public_reporead:orgread:repo_hookadmin:org_hookread:project
-
Select Generate token and copy the value. You need it in the next section.
Add a GitHub integration
In the Mondoo App, navigate to the space where you want to add the integration. In the side navigation bar, select Integrations. In the top right, select + INSTALL. On the integrations page, find the integration you want by browsing or searching by name:
-
Under SaaS, select GitHub.

-
In Choose an integration name, enter a name that identifies the GitHub organization or repository.
-
For a GitHub Enterprise account, enter the home page URL (for example,
https://github.mycompany.com) in Provide GitHub Enterprise URL. -
Under Select your integration type, choose organization or repository:
- Organization. Enter the organization name. To limit which repositories Mondoo scans, disable Scan all repositories and list repositories to include or skip (one per line).
- Repository. Enter the Owner and Repository names from the repo's URL. For example, if the URL is
github.com/Lunalectric/frontend, the owner isLunalectricand the repo isfrontend.

-
Paste your personal access token into Provide your personal access token.
-
Under Discovery options, check what you want Mondoo to scan inside the repos:
- Terraform files
- Kubernetes manifests

-
Select START SCANNING.
On the Recommended Policies page, enable the policies you want Mondoo to score this integration against. To learn how policies work, read Manage Policies.