Skip to content

Commit

Permalink
Merge pull request #6 from ministryofjustice/storing-source-code
Browse files Browse the repository at this point in the history
Document how we store our source code
  • Loading branch information
SteveMarshall authored Aug 30, 2017
2 parents 076aca9 + ba078e6 commit fa26b85
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
title: MOJ technical guidance

permalink: pretty

defaults:
-
scope:
path: "standards"
values:
standard: true
21 changes: 21 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,34 @@ has made for the products we operate.
It complements the [Service Manual](https://www.gov.uk/service-manual),
which covers service design more broadly.

## Standards

{% assign standards = site.pages
| where: "standard", true
| group_by: "category" %}

{% for standard_group in standards %}
{% if standard_group.name != "" %}
### {{ standard_group.name }}
{:.no_toc}
{% else %}
### General standards
{:.no_toc}
{% endif %}

{% for standard in standard_group.items %}
- [{{ standard.title }}]({{ standard.url }})
{% endfor %}
{% endfor %}

## Adding new guidance

Create a new Markdown file that follows this pattern, add a link to it
from this page, and make a pull request:

```markdown
---
category: The broader area this fits into
expires: yyyy-mm-dd (6 months from now)
---
# Thing you're writing a standard about
Expand Down
38 changes: 38 additions & 0 deletions standards/storing-source-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
category: Building software
expires: 2018-01-31
---
# Storing source code

All our source code is open by default, and stored on well-known,
public code hosting services. At the MOJ, we use GitHub.

We follow the principles set out in the service manual for managing the
code that we write:

- [use version control](https://www.gov.uk/service-manual/technology/maintaining-version-control-in-coding)
- [make source code open](https://www.gov.uk/service-manual/technology/making-source-code-open-and-reusable)

You should keep secrets separate from source code, and keep them private.

## GitHub

New repositories for products and services live in the
[ministryofjustice organisation](https://github.com/ministryofjustice)
on GitHub.

You can use your personal GitHub account (but you should [add your MOJ
email address to your account](https://help.github.com/articles/adding-an-email-address-to-your-github-account/),
and maybe [use that for notifications](https://help.github.com/articles/managing-notification-emails-for-organizations/)).
Ask the Digital Service Desk or a member of the webops team to add you
to the organisation. Our GitHub organisation requires that you use
two-factor authorisation.

Repositories should be clearly named, and have an appropriate licence
and enough documentation that someone new can get started with the
project.

If the repository contains secrets rather than code, make it private
and restrict the people who have access to it. Discuss with the
security engineering team whether you should encrypt the contents of
the repository.

0 comments on commit fa26b85

Please sign in to comment.