Skip to content

Commit ca43476

Browse files
Merge pull request #29 from NHSDigital/feature/CCM-5100-suggested-fixes
CCM-5100: Backport suggested changes to template repo
2 parents 94a1050 + fd8a7b8 commit ca43476

File tree

8 files changed

+13
-16
lines changed

8 files changed

+13
-16
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NHS Notify Code Owners
22

33
# Notify default owners
4-
* @rossbugginsnhs @m-houston @edmundcraske2-nhs @timireland
4+
* @rossbugginsnhs @m-houston @aidenvaines-bjss @timireland
55

66
# Codeowners must be final check
77
/.github/CODEOWNERS @NHSDigital/nhs-notify-code-owners

.github/actions/lint-terraform/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ runs:
1616
run: |
1717
stacks=${{ inputs.root-modules }}
1818
for dir in $(find infrastructure/environments -maxdepth 1 -mindepth 1 -type d; echo ${stacks//,/$'\n'}); do
19+
dir=$dir opts='-backend=false' make terraform-init
1920
dir=$dir make terraform-validate
2021
done

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is for you! Please, updated to the versions agreed by your team.
22

3-
terraform 1.7.0
3+
terraform 1.9.1
44
pre-commit 3.6.0
55
nodejs 18.18.2
66
gitleaks 8.18.4

.vscode/settings.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
"**/Thumbs.db": true,
1111
".devcontainer": true,
1212
".github": true,
13-
".vscode": false,
14-
"docs": true,
15-
"infrastructure": true,
16-
"scripts": true,
17-
"terraform": true,
18-
"tests": true
13+
".vscode": false
1914
}
2015
}

scripts/config/pre-commit.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,28 @@ repos:
1919
hooks:
2020
- id: scan-secrets
2121
name: Scan secrets
22-
entry: /bin/env check=whole-history ./scripts/githooks/scan-secrets.sh
22+
entry: /usr/bin/env check=whole-history ./scripts/githooks/scan-secrets.sh
2323
language: script
2424
pass_filenames: false
2525
- repo: local
2626
hooks:
2727
- id: check-file-format
2828
name: Check file format
29-
entry: /bin/env check=staged-changes ./scripts/githooks/check-file-format.sh
29+
entry: /usr/bin/env check=branch ./scripts/githooks/check-file-format.sh
3030
language: script
3131
pass_filenames: false
3232
- repo: local
3333
hooks:
3434
- id: check-markdown-format
3535
name: Check Markdown format
36-
entry: /bin/env check=staged-changes ./scripts/githooks/check-markdown-format.sh
36+
entry: /usr/bin/env check=branch ./scripts/githooks/check-markdown-format.sh
3737
language: script
3838
pass_filenames: false
3939
- repo: local
4040
hooks:
4141
- id: check-english-usage
4242
name: Check English usage
43-
entry: /bin/env check=staged-changes ./scripts/githooks/check-english-usage.sh
43+
entry: /usr/bin/env check=branch ./scripts/githooks/check-english-usage.sh
4444
language: script
4545
pass_filenames: false
4646
- repo: local

scripts/config/vale/styles/Vocab/words/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ endfor
2323
drawio
2424
rawContent
2525
endcapture
26+
Cognito

scripts/git-repo/branch-protection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Github
1+
# GitHub
22

33
## Branch Protection Rules
44

5-
This will create the default branch protection rules using Github API.
5+
This will create the default branch protection rules using GitHub API.
66

77
```sh
88
./branch-protection.sh $reponame $PAT

scripts/terraform/terraform.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ clean:: # Remove Terraform files (terraform) - optional: terraform_dir|dir=[path
4747

4848
_terraform: # Terraform command wrapper - mandatory: cmd=[command to execute]; optional: dir=[path to a directory where the command will be executed, relative to the project's top-level directory, default is one of the module variables or the example directory, if not set], opts=[options to pass to the Terraform command, default is none/empty]
4949
dir=$(or ${dir}, ${TERRAFORM_STACK})
50-
source scripts/terraform/terraform.lib.sh
51-
terraform-${cmd} # 'dir' and 'opts' are accessible by the function as environment variables, if set
50+
. scripts/terraform/terraform.lib.sh && \
51+
terraform-${cmd} # 'dir' and 'opts' are accessible by the function as environment variables, if set
5252

5353
# ==============================================================================
5454
# Quality checks - please DO NOT edit this section!

0 commit comments

Comments
 (0)