Skip to main content

Licensing software or code

Everything we produce or use, whether open or closed, should have an appropriate licence applied (as indicated by the service manual). Without a licence, others (even within the MOJ) have no way of knowing for sure if they can use it, or how.

At the MOJ, we use the MIT License.

Applying the MIT License to our work

Each repository should include a licence file

This should be called LICENCE or

“License” is the U.S. English spelling. We prefer the use of “Licence”, which is the U.K. English spelling, however either is acceptable. GitHub will still show licence details for the British English spelling.

Make sure the license content is included in full, including the title “The MIT License”, so that readers are quickly able to see what licence is being used.

The Copyright is Crown Copyright; you can put “Ministry of Justice” in brackets. For example:

Copyright (c) 2017 Crown Copyright (Ministry of Justice)

The year should be the year the code was first published. Where the code is continually updated with significant changes, the year can be shown as a period from first to most recent update (e.g. 2015-2017).


This is an example of our licence.

Reusing or incorporating others’ work

If a repository or package you want to reuse or build on doesn’t have a licence, we can’t be sure we legally have the right to use it in the way we want.

When adapting an existing project, or incorporating code from one, you should provide proper attribution to the source in your licence. There’s a good guide to proper copyright and licence attribution from the WordPress Theme Review Team.

This repository’s licence file is a good example of how to attribute incorporated works’ licences.

This page was last reviewed on 24 August 2023. It needs to be reviewed again on 24 November 2023 by the page owner #operations-engineering-alerts .
This page was set to be reviewed before 24 November 2023 by the page owner #operations-engineering-alerts. This might mean the content is out of date.