GitHub
Developer
Monitor repositories and org settings for secure development controls.
Why GitHub matters for compliance
Source control is where change management happens for most software teams, so auditors look hard at it. They want to see that nobody pushes straight to the default branch, that every org member uses two-factor authentication, and that code is scanned for vulnerabilities before it ships. These settings are easy to change and easy to forget on new repositories.
Varman checks branch protection on default branches, organization-wide 2FA, Dependabot security updates, CodeQL or another static analysis tool, and the presence of an input-validation library such as Zod, Pydantic, or Respect-Validation. Results feed the Code Changes, 2FA, Sanitized Inputs, and Secure Code tasks, which together cover SOC 2, ISO 27001, HIPAA, PCI DSS, NIST, CMMC Level 2, and GDPR.
GitHub checks in Varman
Connect GitHub to monitor repository security, branch protection, and organization settings. Varman runs 5 checks against GitHub on a schedule and records each result as evidence.
Branch Protection Enabled
high severityVerify that default branches have protection rules configured
- Fails when
- No repositories are configured for branch protection checking. Please select at least one repository.
- Repository not found
- No branch protection on
- Partial branch protection on
- How to fix
- Open the integration settings and select repositories to monitor.
- Verify the repository name is correct (format: owner/repo) and that the GitHub integration has access to it.
Evidence for the Code Changes task. Used by CMMC L2, HIPAA, ISO 27001, ISO 42001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, SOC 2.
Code Scanning
medium severityVerifies repositories have GitHub CodeQL or an equivalent static analysis tool configured. Detects default-setup CodeQL, custom CodeQL workflows, and third-party SARIF uploaders.
- Fails when
- Select at least one repository to monitor in the integration settings so we can verify code scanning.
- This private repository has no code scanning configured. GitHub CodeQL requires GitHub Code Security (formerly GitHub Advanced Security), a paid feature for private repositories. A third-party SAST tool (Semgrep, Snyk, Trivy, etc.) that uploads SARIF results also satisfies this check.
- GitHub returned 403 when reading this repository's code scanning configuration. GitHub requires admin (Administration: read) access to the repository to read this setting, and the connected account or GitHub App installation does not currently have it for this repo.
- GitHub CodeQL (or an equivalent static analysis tool) is not configured. Enable it to automatically detect insecure patterns.
- How to fix
- Open the integration settings and choose repositories to monitor.
- Enable GitHub Code Security for this repository (Settings → Code security → GitHub Advanced Security / Code Security) and turn on CodeQL default setup, or add a workflow under .github/workflows that runs a SAST tool and uploads SARIF (github/codeql-action/upload-sarif).
- Reconnect with an account that has admin access to this repository, or grant the GitHub App installation admin (Administration: read) access to it. If this is an organization repository, also confirm organization policies allow the app to access it.
- In the repository Security tab, enable CodeQL default setup (or add a custom workflow) to run on every push.
Evidence for the Sanitized Inputs task. Used by CMMC L2, HIPAA, ISO 27001, ISO 42001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, SOC 2.
Dependabot Security Updates Enabled
medium severityVerify that Dependabot security updates are enabled on repositories
- Fails when
- Repository not found
- Dependabot not enabled on
- How to fix
- Verify the repository name is correct (format: owner/repo) and that the GitHub integration has access to it.
Evidence for the Secure Code task. Used by GDPR.
Sanitized Inputs
medium severityVerifies repositories use a supported input-validation library (JS/TS, Python, or PHP). Scans entire repository including monorepo subdirectories.
- Fails when
- Select at least one repository to monitor in the integration settings so we can verify sanitized inputs.
- No input validation library found in
- How to fix
- Open the integration settings and choose repositories to monitor.
- Add a supported input-validation library (e.g. Zod/Yup/Joi/Valibot for JS/TS, Pydantic/Marshmallow for Python, Laravel/Respect-Validation for PHP) to enforce schema validation on inbound data.
Evidence for the Sanitized Inputs task. Used by CMMC L2, HIPAA, ISO 27001, ISO 42001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, SOC 2.
2FA Enforcement
high severityVerify that all GitHub organization members have two-factor authentication enabled
- Fails when
- No repositories are configured for 2FA enforcement checking. Please select at least one repository.
- GitHub organization SSO authorization is required to access organization members.
- GitHub rate limits prevented completion of this 2FA check for the organization.
- Insufficient permissions to check 2FA status. The `filter=2fa_disabled` parameter is only available to organization owners on GitHub.
- Error checking 2FA for
- 2FA not enabled
- How to fix
- Open the integration settings and select repositories to monitor.
- Authorize this OAuth app for your organization SSO, then rerun the check.
- Wait for the GitHub rate limit to reset, then rerun the check.
- Reconnect the GitHub integration with an account that is an owner of this organization, or remove the org's repositories from the selection.
- Check the integration connection and try again.
Evidence for the 2FA task. Used by CMMC L2, HIPAA, ISO 27001, NIS 2, NIST 800-171, NIST CSF, PCI DSS, PIPEDA, SOC 2.
Frameworks GitHub evidence supports
In Varman, each check feeds an evidence task, and each task is mapped to requirements in the frameworks you run. Results from GitHub count toward these 11 frameworks.
Connecting GitHub
An admin adds the details below in Varman under Integrations. Secret values are encrypted before they are stored.
- Personal Access Token
- GitHub > Settings > Developer settings > Personal access tokens. A classic token needs scopes: repo, read:org, read:user.
GitHub questions, answered.
What access does Varman need to GitHub?
A personal access token. A classic token needs the repo, read:org, and read:user scopes. For the 2FA check, the account must be able to see organization members, which usually means an owner. If your organization uses SSO, authorize the token for it.
Which GitHub settings matter for SOC 2?
Branch protection on default branches, required two-factor authentication for the organization, and security scanning. Varman checks all three, plus Dependabot security updates and input validation.
Do private repositories need GitHub Code Security for the code scanning check?
CodeQL on private repositories requires GitHub Code Security, a paid feature. The check also accepts a third-party SAST tool that uploads SARIF results through a workflow, so you are not tied to CodeQL.
How often are GitHub checks run?
On a schedule against the repositories you select in the integration settings. Re-run them on demand after changing a branch rule. If GitHub rate limits stop a run, wait for the limit to reset and run it again.