Skip to main content
Back to Service Standard

12. Make new source code open

This guidance will help you apply standard point 12 (opens in new tab).


Everyone is responsible for meeting the Service Standard. This standard point is most relevant to:

Architects Developers

Summary

Teams should aim to make all new source code open and reusable, and publish it under appropriate licences (opens in new tab). DfE specific guidance of how to meet this standard can be found in DfE Technical Guidance (opens in new tab).

Why it’s important

Public services are built with public money. So unless there’s a good reason not to the code they’re based on, should be made available for other people to reuse and build on.

Open source code can save teams duplicating effort and help them build better services faster. And publishing source code under an open licence means that you’re less likely to get locked into working with a single supplier.

Coding in the open is a good way to encourage high quality and secure coding (opens in new tab) in development teams.

There may be times when code should not be published in the open. For example, secrets, keys or sensitive information should not be published to public repositories. DfE has guidance on managing secrets and closed code.

How to meet this standard in every phase

You’ll be assessed on what you’ve done to meet this standard at service assessments. However, even if the service you are working on is not being assessed, it’s good practice to consider how you’ll meet this standard point.

Things to consider:

  • Any code being produced should be open by default. If at any point the code was not publicly available, the team will be asked why, and without good reason, could fail an assessment.

How to meet this standard in a secure way

Use GitHub

The recommended tooling for meeting this standard is GitHub, as repositories in GitHub are open by default. There is a DfE organisation set up at DfE-Digital which is publicly available.

It is important not commit secrets to code. If you have some information that must be secret, for example, passwords, you can use github secrets.

Join DfE-Digital to create a repository for a new service by contacting the DfE Slack channel #digital-tools-support.

Find a Tuition Partner is an example of a GitHub repo in DfE.

Profession specific guidance

Each DDaT profession in DfE has their own community and guidance.

This page was last reviewed on 29 November 2022.