Join our Newsletter — 33% off our NHI Course
Home› Guides› Source control platform health check: 13 Metrics to…
Template Software & AI Supply Chain

Source control platform health check: 13 Metrics to Audit Every Quarter

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 13 November 2026 11 min read
On this page

Your source control platform holds the code, the pipeline definitions and often the credentials that reach production, yet its settings drift quietly as teams create organisations, add bots and switch off protections to ship faster. This health check gives you thirteen quarterly metrics, each with a formula, a data source type and thresholds, to measure whether the platform that hosts your repositories is still configured the way you intended. It is written for the platform engineering or developer experience team that runs the source control service and the application security lead who signs off on it. It measures the platform's configuration and the identities that use it; commit signing practice and history rewrites are covered in the Git Repository Security Guide, and finding secrets in code is covered in the Git Secret Scanning Guide.

What this health check covers

The scope is every hosted or self-managed source control service your organisation uses, at three levels: the enterprise or instance (authentication, administrators, audit log), the organisations or groups within it (membership, outside collaborators, installed integrations, default permissions) and the repositories (branch protection, visibility, deploy keys, webhooks, security features). It covers human developers and the non-human identities that act on the platform: bot and machine users, personal and project access tokens, deploy keys, integration apps and the CI/CD systems that clone and push. Pipeline execution itself is measured in the CI/CD server health check, and estate-wide supply chain outcomes in the Software Supply Chain Health Check.

The review is run by the source control platform owner and approved by the application security lead. The metrics draw on the OpenSSF Source Code Management Platform Configuration Best Practices and the CIS Software Supply Chain Security Benchmarks, expressed as measurable ratios rather than a list of settings to tick. For what to require when choosing or replacing a platform, see Security Requirements for Selecting a Source Code Management Platform.

Key takeaways

  • Measure protection on the branches that ship. Default and release branches without required review and with force pushes allowed are the single largest integrity gap.
  • Tokens and keys outnumber developers. Personal access tokens, deploy keys and integration apps are non-human access to your code, and each needs an owner, a scope and an expiry.
  • Federate every human sign-in. Accounts that authenticate outside corporate SSO survive offboarding and miss MFA policy.
  • Count your administrators. Owner and administrator roles at enterprise and organisation level should be a short, named list.
  • The audit log is evidence only if it leaves the platform. Measure delivery to the SIEM, not whether logging is switched on.

How to use this template

Copy the metrics table and the findings log into your own tracker, then run this source control platform health check at the cadence below. Collect each figure from the data source types described, score it against the green, amber and red bands, and record every amber or red result as a finding with an owner and a due date. Run the same workbook for each platform instance if you operate more than one, and report each separately and in total. Replace bracketed placeholders such as [Organisation] and [Name, role] with your own values.

Cadence and sign-off

ReviewFrequencyOwnerApproverEvidence kept
Full thirteen-metric health checkQuarterlySource control platform ownerApplication security leadMetric workbook, settings and membership exports, findings log
Administrator and outside collaborator snapshot (SCM-02, SCM-04)MonthlyPlatform engineeringSource control platform ownerRole export, collaborator list with sponsor
Token, deploy key and integration review (SCM-06 to SCM-09)QuarterlyPlatform engineering with identity securityApplication security leadCredential and integration inventory with owners, scopes and last use
Branch protection drift check (SCM-10, SCM-11)MonthlyPlatform engineeringApplication security leadRuleset export for production repositories
Ad hoc rerunAfter a source code leak, a token exposure, an acquisition or a platform migrationSource control platform ownerCISO delegateSame as quarterly

Metrics

NHI Mgmt Group recommended thresholds; adjust to your risk appetite. Bands are contiguous: a value sits in exactly one band. "Production repositories" means repositories whose code or pipeline definitions deploy to production; tag them before the first review so the denominator is stable.

IDMetricFormula (numerator / denominator)Data source typeGreenAmberRed
SCM-01Human sign-in through SSOHuman member accounts that can authenticate only through the corporate identity provider / total human member accountsPlatform member export joined to identity provider assignment export98% or above90% to below 98%Below 90%
SCM-02Administrator count within limitOrganisations or groups with no more than [3] owner or administrator accounts, each a named person on the approved list / total organisations or groupsRole and membership export at enterprise and organisation level95% or above80% to below 95%Below 80%
SCM-03Dormant member accountsMember accounts with no sign-in, push or API activity in 90 days / total member accountsMember export joined to audit log activityBelow 5%5% to 15%Above 15%
SCM-04Outside collaborators with a sponsor and expiryOutside collaborators with a recorded internal sponsor and an access end date / total outside collaboratorsCollaborator export, access request records95% or above80% to below 95%Below 80%
SCM-05Unexpected public repositoriesPublic repositories not on the approved open source list / total public repositoriesRepository list with visibility, open source register0%Above 0% to 5%Above 5%
SCM-06Access tokens with expiry and narrow scopeActive personal, project or group access tokens with an expiry of 90 days or less and scope limited to named repositories / total active access tokensToken inventory from the platform's credential management export90% or above70% to below 90%Below 70%
SCM-07Unused tokens and deploy keysActive tokens and deploy keys not used in 90 days / total active tokens and deploy keysCredential inventory with last-used datesBelow 5%5% to 20%Above 20%
SCM-08Write-enabled deploy keysDeploy keys with write access on production repositories without a recorded owner and business reason / total deploy keys on production repositoriesRepository deploy key export0%Above 0% to 5%Above 5%
SCM-09Integrations with an owner and reviewed permissionsInstalled integration apps and OAuth grants with a named owner and a permission review in the last 12 months / total installed integrations and grantsOrganisation integration and OAuth grant export95% or above80% to below 95%Below 80%
SCM-10Protected default and release branchesProduction repositories whose default and release branches require at least one approving review from someone other than the author and block force pushes and deletion / total production repositoriesBranch protection or ruleset export98% or above90% to below 98%Below 90%
SCM-11Protection bypassesMerges or pushes to protected branches in the quarter that used an administrator bypass or override / total merges to protected branchesAudit log events for protection bypass, merge historyBelow 1%1% to 3%Above 3%
SCM-12Signed commits required on protected branchesProduction repositories whose protected branches require signed or verified commits / total production repositoriesBranch protection or ruleset export90% or above70% to below 90%Below 70%
SCM-13Audit log deliveryDays in the quarter on which the platform audit log was received by the SIEM or log archive / days in the quarterSIEM ingestion report for the platform audit source100%97% to below 100%Below 97%

SCM-10 and SCM-11 belong together: a ruleset that every administrator bypasses weekly is a recommendation, not a control. SCM-06 to SCM-09 measure the non-human identities on the platform; stolen tokens and keys are how attackers reach code repositories (MITRE ATT&CK T1213.003 Code Repositories) and how code leaves (T1567.001 Exfiltration to Code Repository). The Nissan source code exposure, where a Git server was left with default credentials, shows how quickly weak platform access becomes a full leak; see the Nissan Source Code Leak 2021.

How to collect the data

  1. Membership and role exports (SCM-01 to SCM-04): export members, roles and outside collaborators at enterprise and organisation or group level, and join them to the identity provider's assignment list for the source control application. Accounts in the platform with no identity provider match fail SCM-01.
  2. Repository inventory (SCM-05, SCM-10, SCM-12): export every repository with visibility, production tag, branch protection or ruleset settings and security feature settings. Read effective settings, including rules inherited from organisation-level rulesets, not only repository-level ones.
  3. Credential inventory (SCM-06 to SCM-08): export access tokens and deploy keys with owner, scope, creation date, expiry and last-used date. Self-managed instances usually expose this to instance administrators; hosted services may require organisation-level token approval to be switched on before tokens are visible.
  4. Integration export (SCM-09): list installed apps and OAuth grants with their requested permissions and the repositories they can reach. Record who approved each installation; an integration with no approval record counts as unowned.
  5. Audit log (SCM-03, SCM-11, SCM-13): take 90 days of audit events from the SIEM, filtered for sign-in, push, protection bypass and settings changes, plus the SIEM's daily ingestion count.

Use a dedicated read-only audit token with an expiry, record its scope in the workbook, and revoke it when the review closes: the audit credential is itself an NHI with wide read access to your code.

Red flags that need action now

  • A production repository whose default branch accepts force pushes or direct pushes without review.
  • An access token or deploy key with write access to many repositories and no expiry.
  • A private repository made public without an approval record.
  • Human accounts that sign in with a local password while the person has already left the organisation.
  • An integration app with write access to code or administration that nobody can name an owner for.
  • A rise in protection bypasses before a release, or bypasses by accounts that are not administrators on the approved list.
  • Secret scanning alerts left open for production repositories beyond your SLA.
  • Days with no audit log in the SIEM, especially around settings or membership changes.

If a red flag points to code or credentials already in the wrong hands, follow the Source Code Leak Response Playbook.

Findings log

IDFindingMetricSeverityOwnerDue dateStatus
HC-SCM-01[Number] production repositories without branch protectionSCM-10[Critical / High / Medium / Low][Name, role][YYYY-MM-DD][Open / In progress / Closed / Risk accepted]
HC-SCM-02[Number] tokens without expiry or with broad scopeSCM-06[Severity][Name, role][YYYY-MM-DD][Status]
HC-SCM-03[Number] outside collaborators without sponsorSCM-04[Severity][Name, role][YYYY-MM-DD][Status]
HC-SCM-04[Finding][SCM-nn][Severity][Name, role][YYYY-MM-DD][Status]

Suggested severity: red on SCM-05, SCM-08, SCM-10 or SCM-13 is critical with a 30-day due date; other reds are high at 60 days; ambers are medium at 90 days.

Remediation map

Finding typeWhere the fix is described
Branch protection and bypasses (SCM-10, SCM-11)Git Repository Security Guide, protected branches and tags section
Unsigned commits accepted on protected branches (SCM-12)Git Repository Security Guide
Tokens, deploy keys and integrations (SCM-06 to SCM-09)OWASP NHI Top 10 NHI7 Long-Lived Secrets Guide; CI/CD Pipeline Identity Security Guide
Members, administrators and collaborators (SCM-01 to SCM-04)Developer Access Lifecycle
Public repositories (SCM-05)Source Code Leak Response Playbook
Platform baseline against the benchmark (all)CIS Software Supply Chain Benchmark Guide

Framework mapping

MetricNIST SP 800-53 Rev. 5NIST CSF 2.0MITRE ATT&CK
SCM-01 to SCM-04AC-2 Account Management; AC-2(3) Disable AccountsPR.AA-01T1078.004 Cloud Accounts
SCM-05AC-6 Least PrivilegePR.AA-05T1213.003 Code Repositories
SCM-06 to SCM-09IA-5 Authenticator Management; AC-6 Least PrivilegePR.AA-05T1528 Steal Application Access Token
SCM-10, SCM-11CM-3 Configuration Change Control; SA-15 Development Process, Standards, and ToolsPR.PS-06T1195.002 Compromise Software Supply Chain
SCM-12SI-7 Software, Firmware, and Information IntegrityPR.PS-06T1195.002 Compromise Software Supply Chain
SCM-13AU-2 Event Logging; AU-6 Audit Record Review, Analysis, and ReportingDE.CM-09T1567.001 Exfiltration to Code Repository

In NIST SP 800-218 (SSDF) the platform controls support practice PS.1, protecting all forms of code from unauthorised access and tampering. In CIS Controls v8.1 they sit mainly in Control 5 (Account Management), Control 6 (Access Control Management) and Control 16 (Application Software Security).

References

Related NHI Mgmt Group resources: Software Supply Chain Security Guide, CI/CD Security Guide, Secrets scanning tool health check, Artefact and container registry health check.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 13 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.