Analysis · government.github.com

Government code is public. It is not open.

Every government GitHub organization on the official governments.yml list, counted: what they publish, what is still maintained, and how much of it anyone outside government has actually contributed to.

Measured11 August 2026
Sourcegithub/government.github.com, gh-pages
MethodGitHub REST + GraphQL, full enumeration
Window12 months to 11 Aug 2026
1,079
government organizations listed, across 77 country and level groups
75,638
public repositories they hold between them
29.5%
of those repos received a single push in the last 12 months
924
estimated outside contributors to U.S. government code in 12 months, after staff screening

What this counts

1,079 organizations

The list at government.github.com is the closest thing that exists to an official register of government open source. It is maintained by GitHub, and governments add themselves to it. This analysis enumerates all 1,079 organization handles on it, then every public repository each one owns, then the merge history of every repository that is still alive.

Two facts about the list shape everything that follows. First, it is opt-in. No government appears on it that did not choose to. Whatever these numbers show is therefore a best case, not a representative sample of government technology. Second, it is well maintained: only 2 of the 1,079 handles no longer resolve, so the picture below is not an artifact of link rot.

The scale

n = 75,638 repositories

Between them these organizations hold 75,638 public repositories. The distribution is extremely uneven: the median organization has 15 repos, while the largest single one, Norway's labour and welfare agency navikt, has 3,098. Fifty-five listed organizations have none at all.

The United Kingdom, with 212 organizations, publishes more public code than the United States does with 332.

BlocOrgsPublic reposActiveActive rateRepos w/ outside PR
United States33217,1143,41920.0%615
United Kingdom21224,3148,48434.9%1,726
Other national50930,4979,23530.3%1,482
Multilateral (UN, EU, other)263,7131,19932.3%142
Total1,07975,63822,33729.5%3,965
United States: 3,419 of 17,114 repos pushed in 12 months (20.0%), 332 orgs United States 20.0% United Kingdom: 8,484 of 24,314 repos pushed in 12 months (34.9%), 212 orgs United Kingdom 34.9% Other national: 9,235 of 30,497 repos pushed in 12 months (30.3%), 509 orgs Other national 30.3% Multilateral (UN, EU, other): 1,199 of 3,713 repos pushed in 12 months (32.3%), 26 orgs Multilateral (UN, EU, other) 32.3%
Share of each bloc's public repositories that received a push in the last 12 months. The United States is the least active major bloc on the list, at 20.0% against the United Kingdom's 34.9%. Base: all 75,638 public repos.

Most of it is not alive

n = 75,638 repositories

Publishing a repository and maintaining one are different acts. Filtering the 75,638 repos down to those a person could actually work on removes roughly four out of five.

Forks account for 8,670. A further 875 are empty. The largest single deduction is archiving: 22,082 repositories, 29.2% of everything on the list, are already archived, which on GitHub means read-only by explicit choice. What remains after requiring a push inside 12 months is 22,337 repos, and requiring that issues are open and a license is present leaves 15,577.

All public repositories: 75,638 repos, 100.0% of all public repos. every public repo in all 1,022 orgs All public repositories 75,638 (100%) Not a fork: 66,968 repos, 88.5% of all public repos. excludes 8,670 forks of other people's code Not a fork 66,968 (89%) Not empty: 66,093 repos, 87.4% of all public repos. excludes 875 repos with no commits Not empty 66,093 (87%) Not archived: 46,422 repos, 61.4% of all public repos. excludes 22,082 archived repos Not archived 46,422 (61%) Pushed in the last 12 months: 22,337 repos, 29.5% of all public repos. the working definition of alive Pushed in the last 12 months 22,337 (30%) Issues open and licensed: 15,577 repos, 20.6% of all public repos. you can file a bug and legally submit a patch Issues open and licensed 15,577 (21%)
Attrition from all public repositories to those a contributor could realistically act on. Each stage is a strict subset of the one above it. Percentages are of all 75,638 public repos.
The licensing gap

Only 20.6% of government public repositories are simultaneously alive, accepting issues, and carrying a license. A repository without a license is not open source in any legal sense: default copyright applies, and a contributor has no clear right to use or modify the code they are being invited to improve.

How much of it takes outside contributions

n = 22,337 active repositories

The sharpest test is not whether a repository is public but whether anyone outside the organization has successfully changed it. For all 22,337 living repositories this study read the 15 most recently updated merged pull requests and classified each author by their relationship to the organization.

Most living government repos do merge pull requests: 70.8% merged at least one in the last 12 months. But the overwhelming majority of that traffic is internal.

Merged any pull request: 15,812 of 22,337 active repos (70.8%). internal or external Merged any pull request 15,812 (71%) Merged a non-member PR (raw): 11,982 of 22,337 active repos (53.6%). upper bound: private org membership inflates this Merged a non-member PR (raw) 11,982 (54%) Merged a genuine outside PR: 3,965 of 22,337 active repos (17.8%). after excluding likely staff Merged a genuine outside PR 3,965 (18%) Has a CONTRIBUTING file: 3,225 of 22,337 active repos (14.4%). tells a newcomer how to help Has a CONTRIBUTING file 3,225 (14%)
Contribution activity among the 22,337 repositories pushed in the last 12 months. "Non-member" means GitHub reported the PR author as something other than owner, member, or collaborator. Percentages are of the 22,337 active repos.

Why the raw number overstates openness

GitHub organization membership can be private. When it is, a staff engineer's pull request is reported with exactly the same author association as a stranger's. Spot checking confirmed this: on alphagov/govuk-frontend, several of the accounts labelled as outside contributors are GOV.UK Design System developers.

So the raw 53.6% figure is an upper bound, not an estimate. To get a floor, this study excluded any "outside" author who had merged pull requests into three or more separate repositories belonging to the same organization, a pattern that describes staff rather than a passing contributor. That cuts the figure to 17.8% of living repos, or 5.2% of all government public repositories.

Because the threshold is a judgement call, here is the full sensitivity range rather than a single number.

Staff filterRepos% of all repos% of active reposDistinct contributors
No filter (raw)11,98215.8%53.6%7,715
Author in 8+ org repos7,56210.0%33.9%6,832
Author in 5+ org repos5,8597.7%26.2%6,172
Author in 4+ org repos4,9926.6%22.3%5,725
Author in 3+ org repos3,9655.2%17.8%5,093
Author in 2+ org repos2,5743.4%11.5%3,868
No filter (raw): 11,982 repos (15.8% of all 75,638), 7,715 distinct contributors No filter (raw) 15.8% Author in 8+ org repos: 7,562 repos (10.0% of all 75,638), 6,832 distinct contributors Author in 8+ org repos 10.0% Author in 5+ org repos: 5,859 repos (7.7% of all 75,638), 6,172 distinct contributors Author in 5+ org repos 7.7% Author in 4+ org repos: 4,992 repos (6.6% of all 75,638), 5,725 distinct contributors Author in 4+ org repos 6.6% Author in 3+ org repos: 3,965 repos (5.2% of all 75,638), 5,093 distinct contributors Author in 3+ org repos 5.2% Author in 2+ org repos: 2,574 repos (3.4% of all 75,638), 3,868 distinct contributors Author in 2+ org repos 3.4%
Share of all 75,638 public repositories showing an outside contribution, at each staff-exclusion threshold. The defensible claim is a range: at most 15.8%, and realistically nearer 5%. Every threshold in between is shown so the reader can pick their own.

Where it is thinnest

n = 17,114 U.S. repositories

Inside the United States the pattern runs against intuition. Federal agencies, which are furthest from the public, publish the most code by a wide margin and are the most open to outside contribution. The layers of government closest to residents, cities and counties, are the least active on both measures.

All 53 U.S. state-level organizations combined publish 1,256 public repositories. The United Kingdom's tax agency alone publishes 1,792.

U.S. categoryOrgsPublic reposActiveActive rateRepos w/ outside PR
Federal16410,8332,27821.0%480
Special District1088424327.5%7
States531,25629323.3%36
Military and Intelligence1786917520.1%26
City662,77337113.4%57
County184845611.6%8
Tribal Nations310220.0%0
Local Law Enforcement15120.0%1
U.S. total33217,1143,41920.0%615
Federal: 2,278 of 10,833 repos active (21.0%), 164 orgs, 480 with outside contribution Federal 21.0% Special District: 243 of 884 repos active (27.5%), 10 orgs, 7 with outside contribution Special District 27.5% States: 293 of 1,256 repos active (23.3%), 53 orgs, 36 with outside contribution States 23.3% Military and Intelligence: 175 of 869 repos active (20.1%), 17 orgs, 26 with outside contribution Military and Intelligence 20.1% City: 371 of 2,773 repos active (13.4%), 66 orgs, 57 with outside contribution City 13.4% County: 56 of 484 repos active (11.6%), 18 orgs, 8 with outside contribution County 11.6%
Share of each U.S. category's public repositories pushed in the last 12 months. Categories with fewer than 100 repos (Tribal Nations, Local Law Enforcement) are omitted from the chart as too small to plot, but appear in the table above.

Who does manage it

12-month window

Outside contribution is not evenly spread. It concentrates in a small number of organizations that have built the habit deliberately, and they are disproportionately British and Nordic. The U.K. Ministry of Justice alone attracted more distinct outside contributors in a year than every U.S. state, city and county organization combined.

NASA is the strongest performer in the United States by a wide margin, with more than twice the outside contributors of the next American organization.

ministryofjustice (UK): 302 distinct outside contributors in 12 months ministryofjustice (UK) 302 hmcts (UK): 212 distinct outside contributors in 12 months hmcts (UK) 212 hmrc (UK): 209 distinct outside contributors in 12 months hmrc (UK) 209 bcgov (Other): 205 distinct outside contributors in 12 months bcgov (Intl) 205 navikt (Other): 199 distinct outside contributors in 12 months navikt (Intl) 199 nasa (US): 165 distinct outside contributors in 12 months nasa (US) 165 nhsdigital (UK): 132 distinct outside contributors in 12 months nhsdigital (UK) 132 defra (UK): 124 distinct outside contributors in 12 months defra (UK) 124 dfe-digital (UK): 116 distinct outside contributors in 12 months dfe-digital (UK) 116 alphagov (UK): 110 distinct outside contributors in 12 months alphagov (UK) 110 govuk-one-login (UK): 90 distinct outside contributors in 12 months govuk-one-login (UK) 90 companieshouse (UK): 87 distinct outside contributors in 12 months companieshouse (UK) 87 onsdigital (UK): 70 distinct outside contributors in 12 months onsdigital (UK) 70 kartverket (Other): 66 distinct outside contributors in 12 months kartverket (Intl) 66 department-of-veterans-affairs (US): 65 distinct outside contributors in 12 months department-of-veterans-affairs (US) 65 betagouv (Other): 64 distinct outside contributors in 12 months betagouv (Intl) 64 metoffice (UK): 55 distinct outside contributors in 12 months metoffice (UK) 55 gsa-tts (US): 48 distinct outside contributors in 12 months gsa-tts (US) 48 gsa (US): 48 distinct outside contributors in 12 months gsa (US) 48 cmsgov (US): 46 distinct outside contributors in 12 months cmsgov (US) 46
Distinct outside contributor accounts per organization, 12 months, after staff exclusion. Bar color encodes bloc, and each label is suffixed with it (US, UK, Intl) so identity never rests on color alone. Bot accounts are excluded throughout.
CountryOrgsPublic reposActiveActive rateRepos w/ outside PR
United Kingdom21224,3148,48434.9%1,726
Canada585,3521,72332.2%282
Norway315,2552,17241.3%363
France453,25596329.6%197
Sweden442,15665530.4%51
Australia441,96236118.4%62
Finland161,76358533.2%104
Netherlands191,53347430.9%72
Brazil371,40131822.7%60
Germany261,23551841.9%86
Spain2096825226.0%9
Switzerland2152716731.7%30
Italy744513029.2%11
New Zealand124149522.9%23
Japan412864.7%0

Method and limits

read this before quoting