You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/continuous_integration.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,15 +35,15 @@ These tools are free to use for open source GitHub repositories.
35
35
36
36
### Maintainability and test coverage
37
37
38
-
Defra has a [SonarCloud](https://www.sonarsource.com/products/sonarcloud/) organisation, which should be used to perform static quality analysis checks on your code.
38
+
Defra has a [SonarQube Cloud](https://www.sonarsource.com/products/sonarcloud/) organisation, which should be used to perform static quality analysis checks on your code.
39
39
It provides a rating for the security, reliability and maintainability of your code and estimates the time it would take to deal with any technical debt.
40
40
41
-
You should include SonarCloud in your CI so that it flags problems it spots in your code, like duplication or complexity.
41
+
You should include SonarQube Cloud in your CI so that it flags problems it spots in your code, like duplication or complexity.
42
42
43
-
You can also configure your build tool (like GitHub Actions) to report unit test coverage to SonarCloud.
44
-
SonarCloud will then include your test coverage in its assessment of your code.
43
+
You can also configure your build tool (like GitHub Actions) to report unit test coverage to SonarQube Cloud.
44
+
It will then include your test coverage in its assessment of your code.
45
45
46
-
SonarCloud is free to use for open source GitHub repositories.
46
+
SonarQube Cloud is free to use for open source GitHub repositories.
Copy file name to clipboardExpand all lines: docs/processes/github_access.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You're not required to set a profile picture, but changing it from the default G
18
18
All projects at Defra must be created under one of the organisations within the Defra GitHub enterprise:
19
19
20
20
-[Defra](https://github.com/DEFRA) for development of digital services
21
-
-[Defra Data Science Centre of Excellence](https://github.com/-Defra-Data-Science-Centre-of-Excellence) for data science
21
+
-[Defra Data Science Centre of Excellence](https://github.com/Defra-Data-Science-Centre-of-Excellence) for data science
22
22
-[Defra design team](https://github.com/defra-design) for prototype designs
23
23
-[aphascience](https://github.com/aphascience) for scientific projects at APHA
24
24
@@ -42,6 +42,18 @@ You should contact the organisation owners to create a new repository. They'll n
42
42
43
43
**Do not create repositories under your own user account!** Though repositories can be transferred at a later date, it is easier for everyone if they originate within our organisations.
44
44
45
+
## Analysing a repository with SonarQube Cloud
46
+
47
+
If your repository is in the Defra GitHub organisation, we have a SonarQube Cloud organisation that can be used to perform static analysis on your code.
48
+
49
+
You should put this in place, to ensure that you comply with [our standard for code quality checks](../standards/common_coding_standards.md/#all-code-is-checked-for-quality).
50
+
51
+
To request this, you can contact the organisation owners:
52
+
53
+
- use the #sonar-support channel on the Defra Digital Slack workspace
54
+
55
+
You will need to [sign in to SonarQube Cloud](https://sonarcloud.io/login) with your GitHub account before you can be added to the Defra SonarQube Cloud organisation.
56
+
45
57
## Administering a repository
46
58
47
59
If you are the administrator for a repository it's your responsibility to ensure the repo has been set up and maintained in accordance with the standards of the organisation.
@@ -52,8 +64,18 @@ However you choose to manage it, you must always ensure that your repository's *
52
64
53
65
If you will no longer be the administrator for a repository, you will need to identify a replacement and make them the administrator.
54
66
67
+
## Archiving repositories
68
+
69
+
When a repository that you administer is no longer being maintained, you should request that it be archived. This can be done by contacting the relevant organisation owners.
70
+
71
+
We typically archive repositories rather than deleting them, as the code they contain may still be of value.
72
+
55
73
Repositories without an administrator will be archived by the organisation owners.
56
74
75
+
Repositories that have been inactive for 24 months or more will be archived by the organisation owners.
76
+
77
+
If an archived repository has an associated SonarQube Cloud project then that will be deleted by the organisation owners. Projects will also be deleted if they haven't been analysed for 24 months or more.
78
+
57
79
## Access removal
58
80
59
81
Each month, the administrators of our Defra GitHub enterprise will run a report to identify any [dormant users](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/managing-dormant-users) who have not been active for six months and provide the list to each of the organisation owners in the enterprise.
0 commit comments