generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1087a87
commit e435a2a
Showing
24 changed files
with
363 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# NHS Notify Code Owners | ||
|
||
# Notify default owners | ||
* @rossbugginsnhs @m-houston @aidenvaines-bjss @timireland | ||
|
||
# Codeowners must be final check | ||
/.github/CODEOWNERS @NHSDigital/nhs-notify-code-owners | ||
/CODEOWNERS @NHSDigital/nhs-notify-code-owners | ||
|
||
|
||
# Each NHS Notify repository should have clear code owners set. | ||
# Do not use GitHub team names, instead use the GitHub usernames | ||
# of the people who are responsible for the code maintenance. | ||
|
||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @global-owner1 and @global-owner2 will be requested for | ||
# review when someone opens a pull request. | ||
# * @global-owner1 @global-owner2 | ||
|
||
# Order is important; the last matching pattern takes the most | ||
# precedence. When someone opens a pull request that only | ||
# modifies JS files, only @js-owner and not the global | ||
# owner(s) will be requested for a review. | ||
# *.js @js-owner #This is an inline comment. | ||
|
||
# You can also use email addresses if you prefer. They'll be | ||
# used to look up users just like we do for commit author | ||
# emails. | ||
# *.go [email protected] | ||
|
||
# Teams can be specified as code owners as well. Teams should | ||
# be identified in the format @org/team-name. Teams must have | ||
# explicit write access to the repository. In this example, | ||
# the octocats team in the octo-org organization owns all .txt files. | ||
# *.txt @octo-org/octocats | ||
|
||
# In this example, @doctocat owns any files in the build/logs | ||
# directory at the root of the repository and any of its | ||
# subdirectories. | ||
# /build/logs/ @doctocat | ||
|
||
# The `docs/*` pattern will match files like | ||
# `docs/getting-started.md` but not further nested files like | ||
# `docs/build-app/troubleshooting.md`. | ||
# docs/* [email protected] | ||
|
||
# In this example, @octocat owns any file in an apps directory | ||
# anywhere in your repository. | ||
# apps/ @octocat | ||
|
||
# In this example, @doctocat owns any file in the `/docs` | ||
# directory in the root of your repository and any of its | ||
# subdirectories. | ||
# /docs/ @doctocat | ||
|
||
# In this example, any change inside the `/scripts` directory | ||
# will require approval from @doctocat or @octocat. | ||
# /scripts/ @doctocat @octocat | ||
|
||
# In this example, @octocat owns any file in a `/logs` directory such as | ||
# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes | ||
# in a `/logs` directory will require approval from @octocat. | ||
# **/logs @octocat | ||
|
||
# In this example, @octocat owns any file in the `/apps` | ||
# directory in the root of your repository except for the `/apps/github` | ||
# subdirectory, as its owners are left empty. | ||
# /apps/ @octocat | ||
# /apps/github | ||
|
||
# In this example, @octocat owns any file in the `/apps` | ||
# directory in the root of your repository except for the `/apps/github` | ||
# subdirectory, as this subdirectory has its own owner @doctocat | ||
# /apps/ @octocat | ||
# /apps/github @doctocat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# SEE: https://github.com/gitleaks/gitleaks/blob/master/README.md#gitleaksignore | ||
|
||
cd9c0efec38c5d63053dd865e5d4e207c0760d91:docs/guides/Perform_static_analysis.md:generic-api-key:37 | ||
96096685ab3d6876671e2bc9a6ff4d48fc56e521:src/helloworld/helloworld.sln:ipv4:4 | ||
4f4e8c15629b2cb09356a7fed4d72953590227ce:docs/Gemfile.lock:ipv4:4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This is an implementation of https://github.com/tfutils/tfscaffold for NHS Notify | ||
|
||
Update the `etc/global.tfvars` file according to your NHS Notify Domain, and follow https://github.com/tfutils/tfscaffold?tab=readme-ov-file#bootstrapping to get your tfstate s3 bucket set up |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,59 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: scan-secrets | ||
name: Scan secrets | ||
entry: ./scripts/githooks/scan-secrets.sh | ||
args: ["check=staged-changes"] | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-file-format | ||
name: Check file format | ||
entry: ./scripts/githooks/check-file-format.sh | ||
args: ["check=staged-changes"] | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-markdown-format | ||
name: Check Markdown format | ||
entry: ./scripts/githooks/check-markdown-format.sh | ||
args: ["check=staged-changes"] | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-english-usage | ||
name: Check English usage | ||
entry: ./scripts/githooks/check-english-usage.sh | ||
args: ["check=staged-changes"] | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: lint-terraform | ||
name: Lint Terraform | ||
entry: ./scripts/githooks/check-terraform-format.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 # Use the ref you want to point at | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: detect-aws-credentials | ||
args: [--allow-missing-credentials] | ||
- id: check-added-large-files | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
exclude: .+\.cs | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: ['--autofix'] | ||
# - id: ... | ||
- repo: local | ||
hooks: | ||
- id: sort-dictionary | ||
name: Sort dictionary | ||
entry: ./scripts/githooks/sort-dictionary.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: scan-secrets | ||
name: Scan secrets | ||
entry: /usr/bin/env check=whole-history ./scripts/githooks/scan-secrets.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-file-format | ||
name: Check file format | ||
entry: /usr/bin/env check=branch ./scripts/githooks/check-file-format.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-markdown-format | ||
name: Check Markdown format | ||
entry: /usr/bin/env check=branch ./scripts/githooks/check-markdown-format.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: check-english-usage | ||
name: Check English usage | ||
entry: /usr/bin/env check=branch ./scripts/githooks/check-english-usage.sh | ||
language: script | ||
pass_filenames: false | ||
- repo: local | ||
hooks: | ||
- id: lint-terraform | ||
name: Lint Terraform | ||
entry: ./scripts/githooks/check-terraform-format.sh | ||
language: script | ||
pass_filenames: false |
27 changes: 27 additions & 0 deletions
27
scripts/config/vale/styles/config/vocabularies/words/accept.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[A-Z]+s | ||
Bitwarden | ||
bot | ||
Cognito | ||
Cyber | ||
Dependabot | ||
draw.io | ||
drawio | ||
endcapture | ||
endfor | ||
endraw | ||
GitHub | ||
Gitleaks | ||
Grype | ||
idempotence | ||
Jira | ||
OAuth | ||
Octokit | ||
onboarding | ||
Podman | ||
Python | ||
rawContent | ||
sed | ||
Syft | ||
Terraform | ||
toolchain | ||
Trufflehog |
1 change: 1 addition & 0 deletions
1
scripts/config/vale/styles/config/vocabularies/words/reject.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# GitHub | ||
|
||
## Auto link Protection Rules | ||
|
||
This will create the auto link to Jira. | ||
|
||
```sh | ||
./auto-link.sh $reponame $PAT | ||
``` | ||
|
||
PAT must have `administration:write`. [Create an auto link](https://docs.github.com/en/rest/repos/autolinks?apiVersion=2022-11-28#create-an-autolink-for-a-repository) |
Oops, something went wrong.