| Filename | Latest commit message | Latest commit date |
|---|---|---|
| CODE_OF_CONDUCT.md | ||
| DATA_PROTECTION.md | ||
| README.md | ||
| REPORTING.md | ||
| SCOPE.md | ||
About this instance
This is a read-only discovery mirror of open source code published by the Swiss public sector, Phase 0 of a phased roadmap toward a public-sector development platform. It aggregates repositories from:
- the federal OSS catalogue opensource.admin.ch
- the public sectors (federal / cantonal / municipal, and public enterprises and institutions) of the ossbenchmark.com dataset
- the GitHub organisations listed in swiss/index, read from GitHub directly on each run
All repositories are native pull-mirrors, re-synced every 24 hours. Development happens at the source, not here: where the upstream runs an issue tracker or a wiki, the mirror's Issues and Wiki tabs link straight to it; everything else — pull requests, projects, local tickets — is disabled by design. The links are detected automatically for GitHub-hosted sources; for projects whose primary lives on another forge they are set by hand, so a missing tab there means nobody has asked yet, not that the upstream offers nothing — request one at info@zentrumsds.ch. Contribute at the upstream repository, linked from each mirror's tabs and description.
What this instance is for
The code mirrored here is already public at its source. This section says what having it in one place adds today, in Phase 0 of the roadmap, and what each later phase would add. A phase starts only when the conditions the roadmap sets for it are met, such as a budget to run it and, before development moves here, teams committed to moving.
What Phase 0 offers today
- Swiss public-sector code from many forges can be searched in one place. Federal, cantonal and municipal code is spread across GitHub organisations, GitLab groups and self-hosted forges. Here the code the three source datasets list is browsed and searched together, so a team looking for an existing solution checks one site rather than every publisher. See Browse by topic.
- A weekly scan finds missing or outdated publiccode.yml files and the AI models the code uses. Each run lists repositories that could be added to the federal catalogue as they stand, files that catalogue crawlers cannot read because of their file name, catalogue entries whose file contradicts the repository, and the Hugging Face models the code loads (run report, models). Each finding is a small change a publisher can make.
- Researchers get one corpus with published selection rules. Anyone studying Swiss public-sector code can clone it from one host or query one API, and cite a selection that is versioned and can be rebuilt (SCOPE.md), rather than assembling and defending a list of their own.
- Code published under the EMBAG appears here wherever it is hosted. Article 9 of the EMBAG obliges the federal administration to publish the source code of its software as open source, and each authority chooses the platform it publishes on (Federal Chancellery). An authority publishing on any forge can ask to be mirrored, and its code then appears next to the rest of the Swiss public sector's.
- Code stays readable after its source is deleted. A mirror whose upstream has gone is kept and tagged upstream-gone rather than removed, so it may be the last public copy. The instance is not an archive and makes no promise to keep it (SCOPE.md). For AI models, the models list asks Software Heritage to archive those it does not hold yet.
What the later phases would add
- Phase 1: the mirrored code gets preserved dependencies and supply-chain evidence. For the code mirrored here, the platform would keep copies of the packages it depends on, list its components in a software bill of materials (SBOM), check them for known vulnerabilities and licences (vulnerability findings are shown only to public-sector organisations signed off for access), and award the openCode badges for maintenance, security, reuse and supply chain. openCode, the German public sector's code platform, publishes its badge software as open source; it can assess each repository at its source on GitHub or GitLab, so badges need no change on the publisher's side, though on GitHub some checks need access only the publisher has. The same analysis shows which base images the most public bodies build on, and so which hardened images would save the most work later. Nobody has to move their development for any of this, which is why it comes first (Phase 1, BADGES.md).
- Phase 2: public-sector teams can develop here. A municipality or office too small to run its own GitLab can host its development here instead of on a commercial forge, and public bodies building the same software can work on it together, each keeping control over its own repositories. Access is limited to public-sector staff. The platform runs small checks on every repository, such as publiccode.yml validation, and could add openCode's easyPDF, which turns Markdown documents kept in a repository into accessible PDF/UA files, so that staff who maintain documents rather than software can use the platform too (Phase 2).
- Phase 3a: people outside the public sector can contribute. Registration opens, with moderation, so vendors and citizens can propose changes to public-sector projects directly here (Phase 3a).
- Phase 3b: forks, and badges for code developed here. People outside the public sector can fork public-sector projects, and the badges from Phase 1 extend to code developed on this platform (Phase 3b).
- Phase 4: Swiss code becomes reachable from other countries' public-sector forges. Public-sector forges in other European countries run or plan to run the same forge software, and federation would let projects be followed and contributed to across instances (Phase 4).
- Phase 5: public bodies can deploy hardened container images built here. A hardened image is stripped of parts the software does not need and updated promptly when a vulnerability is fixed. Phase 1 shows which images to build first. Publishing images for others makes the operator a supplier with obligations to them, which is why this phase has the strictest conditions; it can follow Phase 1 without waiting for the development phases (Phase 5).
If one of these would matter to your team, tell us: from Phase 2 on, a phase goes ahead when teams say they need it.
What the next phases would need
- CI runners: small runners from the platform, and teams' own runners for larger jobs. Running other people's code is the costliest and riskiest part of a shared platform. The Phase 1 analyses run as scheduled jobs beside the forge and need no runners. From Phase 2, teams connect their own runners, which serve only their organisation's repositories, and the platform runs only the small checks named above. From Phase 3b, verified users also get a small share of platform runners for light jobs such as tests, once a runner setup has passed written isolation tests. Larger builds, special hardware and existing CI servers stay on teams' own runners (RUNNERS.md).
- Login with AGOV. Public-sector staff sign in with AGOV, the login of the Swiss authorities, limited to addresses at public-sector email domains. It is the first login planned: in Phase 1, staff use it to declare which software their organisation runs and to file requests here, such as asking for access. In Phase 2 it stays the login for staff of bodies without a login system of their own; a body that runs one can connect it instead, so that access follows its own teams. From Phase 3a, people outside the public sector can register too, and AGOV gives them a verified account (Phase 2, identity and access).
- A recurring budget, ideally shared by the Confederation and the cantons. Costs grow with each phase: Phase 0 runs on one managed instance, Phase 1 adds storage for preserved packages and computing time for the analyses, Phase 2 needs dedicated operations, Phase 3b adds runner hardware and Phase 5 adds build capacity. The roadmap requires a budget before each phase starts and recurring funding before Phase 5, because a platform that holds public bodies' development work cannot stop when a project grant ends. Federal, cantonal and municipal bodies all publish and use the code here, which is why the aim is joint funding by the Confederation and the cantons. Grants can pay for individual improvements to the forge software, but not for running the platform (funding by phase).
Mirroring is not endorsement
A repository is mirrored here because it appeared in one of the three source datasets above, and for no other reason. Being on this domain does not mean the code was reviewed, approved, recommended, or security-assessed by the operators of this instance, by Zentrum SDS, or by any Swiss public-sector body. Mirroring is automated republication: an upstream change is live here within one sync interval, with no human looking at it in between.
Each repository reflects its own authors, its own maintainers, and its own upstream terms. Judge it the way you would judge it at its source, which is one click away from every mirror.
The same applies to licences. The no-license topic records that no licence was found in the source dataset; its absence is not a warranty that a licence is present, valid, or fits your use. The upstream licence governs reuse, and cloning from here grants you no rights beyond it. See SCOPE.md.
Browse by topic
Every mirror is tagged with topics. Click a topic chip on any repository page, or use these pre-built filters:
| Filter | Meaning |
|---|---|
| federal | Federal administration |
| cantonal | Cantons |
| city | Cities and municipalities |
| public-enterprise | Enterprises and public-law institutions owned or controlled by public bodies, such as SBB, Swiss Post or cantonal hospitals |
| no-license | No license detected upstream, clarify terms before reuse |
| archived | Archived at the source |
| publiccode | Carries a publiccode.yml, the metadata standard public-sector catalogues read |
| catalog-candidate | Carries a publiccode.yml and is not listed in the federal catalogue — indexable as it stands |
| no-publiccode | No publiccode.yml a catalogue crawler would find |
| publiccode-yaml | Carries the file under the publiccode.yaml spelling, which catalogue crawlers do not read — one rename from indexable |
| publiccode-check | Listed in the federal catalogue, but its publiccode.yml says something the repository contradicts, such as an outdated release; the run report says what to change |
| upstream-gone | The source repository no longer exists; this mirror may be the last public copy |
| no-code | Nothing at the repository root but a README, a licence and the like — no software to read or run |
To compose a topic query yourself: /explore/repos?q=<topic>&topic=1, where the topic=1 parameter switches the search box from keyword search to topic search. For scripted use: GET /api/v1/repos/search?q=<topic>&topic=true.
Several topics can go in one query, comma-separated — they are combined with or, so ?q=no-license,no-publiccode&topic=1 finds repositories missing either. There is no and, and no way to exclude a topic. To narrow by publisher instead, search from that organisation's own page, which applies the same query within it:
https://git.opencode.swiss/{organisation}?q=no-license,no-publiccode
That page matches topic names loosely rather than exactly, so ?q=publiccode there will also return no-publiccode. Use /explore/repos?...&topic=1 when the distinction matters.
One caution on the no- names: no-license and no-publiccode mark metadata a publisher could add, and are what an outreach query looks for, together with publiccode-check, which marks a file the publisher could correct. no-code is not one of those — it describes a repository that holds no software, and nobody is being asked to add any. A loose ?q=no- on an organisation page will return all three together.
Most topics carry the values the source datasets held when they were exported, not a live check of the upstream repository; the publiccode topics are read from the mirror itself, and for repositories found through the organisation index the licence and archived tags are read from GitHub on each run. SCOPE.md explains what each one means and how current it is.
What is here, and what is missing
Over a thousand repositories, drawn from the three sources named above and refreshed weekly. The latest run report has the current count, and what changed since the run before it. This is not a register of Swiss public-sector open source, and absence from it means nothing. A body publishing code that none of the three sources lists will not appear here, however visible that code is elsewhere.
The selection rules are versioned, inspectable configuration in meta/opencode-forges, not an editorial judgement made repository by repository. SCOPE.md has the full picture: the counts, the deduplication, what was deliberately excluded, how fresh a mirror is, and what happens when an upstream disappears.
AI models named in the mirrored code
The weekly run also lists the Hugging Face models that mirrored code loads or names, and the models those were derived from: models.md in the reports repository. For each model it gives the licence, the size, which repositories name it and whether they fix a revision, and whether Software Heritage, the public archive of source code, holds the current revision; anyone can look a model up in its archive by the model's Hugging Face URL. A model the code stops naming stays on the list, marked historical, since deployments of older code may still use it.
The list exists so that these models stay recoverable if their publisher withdraws them. For every revision seen, the run keeps each file's digest, which lets anyone check a copy found later against the original. Models Software Heritage does not hold yet are listed in swh-origins.txt for it to archive. A repository outside Hugging Face is listed there only when a bill of materials in the mirrored code declares that it holds a model, for example through a vcs reference on a CycloneDX machine-learning-model component; weight files found in a repository are not enough. The list is a lower bound: a model name assembled at runtime, or set outside the committed code, is not found.
If you publish code that uses AI models, please declare them in a bill of materials. A declared model is more reliable than one found by reading code, and a declared revision tells everyone which files need to stay recoverable. The scan reads CycloneDX JSON files named bom.json or ending in .cdx.json, and SPDX JSON files ending in .spdx.json or .spdx3.json (SPDX 2.2, 2.3 or 3), wherever they are in the repository. It lists a declared model even when it is not on Hugging Face, with the weights digest the file gives; from an SPDX 2 file, which has no way to mark a model, it takes only Hugging Face models. For a repository mirrored from GitHub that has a Dockerfile or Containerfile, it also reads the bill of materials attached to the image ghcr.io/<owner>/<repository>:latest. What to do:
- Use an existing format. In CycloneDX, a model is a component of type
machine-learning-model; SPDX 3.0 describes models in its AI profile. - Name each model with a package URL that includes its commit, using the
huggingfacetype: for examplepkg:huggingface/swissgeol/color@def3fb7c6ee5936ae441aa6d49c11add42a2d8bd. The commit is the one shown in the model's history on Hugging Face. - Load the same revision in the code, for example
from_pretrained("swissgeol/color", revision="def3fb7c6ee5936ae441aa6d49c11add42a2d8bd"), so the declaration and what runs cannot drift apart. - Commit the file to the repository, at the root under the name CycloneDX uses by convention,
bom.json, rather than only attaching it to a release, so that the mirror and Software Heritage keep it with the code. - If a container image downloads models while it is built, write the same declaration into the image as well. An SBOM that BuildKit generates for the image (
sbom: trueindocker/build-push-action) copies the model and its revision from that file, and the scan reads it from there; by itself it does not name models whose files are not in safetensors or GGUF format, and it names the others only by their directory.
Organisation names and provenance
Organisation names on this instance mirror the upstream owner's namespace: the GitHub organisation, or the top-level GitLab group for GitLab-hosted primaries. Each organisation's description names the exact upstream namespace it mirrors, and each repository's description links its source repository, so provenance is always one click away. Do not infer authority from a name alone. Inclusion is curated (a federal catalogue listing, the ossbenchmark.com dataset, or the Confederation's own index of its GitHub organisations), not claimed by name: should two different entities ever share a name across forges, they would get distinct organisation names here rather than being merged. The one organisation currently fed from two forges, swiss-armed-forces, is the same real-world entity on both (Loom's GitLab primary and its GitHub organisation).
What is switched off, and why
Missing tabs are switched off on purpose:
| Switched off | Why |
|---|---|
| Local issues, pull requests, wikis, projects | Contribution belongs at the source, where the maintainers are. A mirror's Issues or Wiki tab, where shown, is a link to the upstream's own tracker or wiki. For GitHub-hosted sources an absent tab means the upstream offers none; for other forges the links are set by hand and can be requested by email. Every mirror also links its upstream from its description. |
| Forks and stars | Nothing here is a base to build on, and a fork on this domain would inherit the authority the domain implies. |
| CI and Actions | Phase 0 runs no runners. Nothing on this instance executes code. |
| Packages | Artefacts are published where the project publishes them. From Phase 1, a package registry holds copies of the dependencies of mirrored code, for the operators and the public bodies they serve, not for public download. |
| Registration and accounts | Browsing and searching are anonymous. There is nothing to sign in for. |
Reporting a problem
Security vulnerabilities in a mirrored project go to that project, upstream, not to us: this instance holds a copy, and the people who can fix it are at the source.
Report to the operators anything about the mirror itself, and any mirrored content that is unlawful, abusive, compromised, or should not have been published. See REPORTING.md for what to send, where, and what happens next, including the unlisting target of one business day.
Personal data in mirrored history
Mirrored git history carries commit author names and email addresses exactly as they were published upstream. If that concerns you, or you need something corrected or removed, read DATA_PROTECTION.md first: it explains what this instance holds, what removal here can and cannot achieve, and how to reach the operators.
Opting in or out
The mirror set is maintained as versioned configuration. If your organisation wants repositories added or removed (including takedowns), contact the operators: info@zentrumsds.ch.
Tell us what you would need
Phase 0 exists to find out whether a shared Swiss public-sector development platform is wanted, and what it would have to do. That question is answered by teams, not by mirror counts, so please tell us:
- Would your team develop here? A platform to host real development on, rather than mirror finished work, is Phase 2. It is planned on the strength of teams saying they would move, so if that is you, say so even if the timing is years out.
- What would it need to have? CI runners, a contribution workflow, login with AGOV or your organisation's own login system, cross-border federation, something we have not thought of. Concrete requirements shape the design and the budget request.
- What is wrong with the mirror today? Wrong metadata, a repository that should not be here, one that should, or a rough edge in browsing and search.
- Is an organisation in the wrong sector? Public enterprises and institutions are tagged
public-enterprise, following the ossbenchmark dataset's classification. If one is classified wrongly, or you would draw the line elsewhere, see SCOPE.md and tell us.
Write to info@zentrumsds.ch. A short conversation is worth more than a form.
Adding a publiccode.yml is welcome
If your repository has no publiccode.yml, consider adding one upstream. It is a small metadata file describing what the software does, who maintains it, and under what terms, and it makes public-sector software findable and comparable across catalogues rather than only browsable. It is invited, never required: no repository is excluded, ranked, or flagged for not having one, and a mirror picks up the file automatically at the next sync once it exists upstream.
Who runs this
git.opencode.swiss is run by Zentrum SDS, a Swiss public-sector digital-sovereignty initiative, and operated by the Institut Public Sector Transformation (IPST) that anchors it.
Berner Fachhochschule BFH (Bern University of Applied Sciences), a public-law administrative unit, UID CHE-319.685.045, legal seat Falkenplatz 24, 3012 Bern. Institut Public Sector Transformation, Brückenstrasse 73, 3005 Bern. Contact: info@zentrumsds.ch.
The instance itself is hosted in Switzerland on Codey, the managed Forgejo service of VSHN AG.
How the operators commit to running the instance, and to deciding what stays mirrored, is in CODE_OF_CONDUCT.md. The design work behind the platform is public in meta/opencode-forges.