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
a844eef
commit 66f9693
Showing
24 changed files
with
252 additions
and
127 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
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
Empty file.
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 |
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 |
7 changes: 5 additions & 2 deletions
7
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
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) |
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,9 @@ | ||
#!/bin/bash | ||
|
||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $2" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/NHSDigital/$1/autolinks \ | ||
-d '{"key_prefix":"CCM-","url_template":" https://nhsd-jira.digital.nhs.uk/browse/CCM-<num>","is_alphanumeric":true}' |
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 | ||
|
||
## Branch Protection Rules | ||
|
||
This will create the default branch protection rules using GitHub API. | ||
|
||
```sh | ||
./branch-protection.sh $reponame $PAT | ||
``` | ||
|
||
PAT must have `administration:write`. [Create a repository rule set](https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset) |
Oops, something went wrong.