File tree Expand file tree Collapse file tree 8 files changed +14
-27
lines changed
infrastructure/terraform/bin Expand file tree Collapse file tree 8 files changed +14
-27
lines changed Original file line number Diff line number Diff line change 2020# All arguments are required except terraformAction, and internalRef.
2121# Example:
2222# ./dispatch_internal_repo_workflow.sh \
23- # --infraRepoName "nhs-notify-web-template-management " \
23+ # --infraRepoName "nhs-notify-dns " \
2424# --releaseVersion "v1.2.3" \
2525# --targetWorkflow "deploy.yaml" \
2626# --targetEnvironment "prod" \
@@ -86,7 +86,7 @@ while [[ $# -gt 0 ]]; do
8686 ;;
8787 esac
8888done
89- # Validate required parameters
89+
9090if [[ -z " $APP_PEM_FILE " ]]; then
9191 echo " [ERROR] PEM_FILE environment variable is not set or is empty."
9292 exit 1
@@ -140,7 +140,6 @@ PR_TRIGGER_PAT=$(curl --request POST \
140140 -H " Authorization: Bearer ${JWT} " \
141141 -H " X-GitHub-Api-Version: 2022-11-28" | jq -r ' .token' )
142142
143-
144143# Set default values if not provided
145144if [[ -z " $PR_TRIGGER_PAT " ]]; then
146145 echo " [ERROR] PR_TRIGGER_PAT environment variable is not set or is empty."
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
1616
1717 steps :
1818 - name : Check out the repository
19- uses : actions/checkout@v5.0.0
19+ uses : actions/checkout@v4
2020
2121 - name : Check out external repository
22- uses : actions/checkout@v5.0.0
22+ uses : actions/checkout@v4
2323 with :
2424 repository : NHSDigital/nhs-notify-repository-template
2525 path : nhs-notify-repository-template
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ jobs:
3232
3333 steps :
3434 - name : " Checkout code"
35- uses : actions/checkout@v5.0.0
35+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636 with :
3737 persist-credentials : false
3838
3939 - name : " Run analysis"
40- uses : ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
40+ uses : ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
4141 with :
4242 results_file : results.sarif
4343 results_format : sarif
6868 # Upload the results to GitHub's code scanning dashboard (optional).
6969 # Commenting out will disable upload of results to your repo's Code Scanning dashboard
7070 - name : " Upload to code-scanning"
71- uses : github/codeql-action/upload-sarif@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
71+ uses : github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
7272 with :
7373 sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -599,6 +599,7 @@ readonly backend_config="terraform {
599599 region = \" ${region} \"
600600 bucket = \" ${bucket} \"
601601 key = \" ${backend_key} \"
602+ dynamodb_table = \" ${bucket} \"
602603 use_lockfile = true
603604 }
604605}" ;
Original file line number Diff line number Diff line change 33 rev : v5.0.0 # Use the ref you want to point at
44 hooks :
55 - id : trailing-whitespace
6- exclude : |
7- (?x)^(
8- frontend/src/__tests__/.*\.tsx\.snap |
9- frontend/src/__tests__/utils/markdownit/fixtures/index\.ts
10- )$
116 - id : detect-aws-credentials
127 args : [--allow-missing-credentials]
138 - id : check-added-large-files
@@ -17,11 +12,6 @@ repos:
1712 - id : forbid-new-submodules
1813 - id : mixed-line-ending
1914 - id : pretty-format-json
20- exclude : |
21- (?x)^(
22- .*/?package-lock.json |
23- packages/event-schemas/schemas/[^/]+/[^/]+\.json
24- )$
2515 args : ['--autofix']
2616 # - id: ...
2717 - repo : local
4232 hooks :
4333 - id : check-file-format
4434 name : Check file format
45- entry : /usr/bin/env check=branch exclude=frontend/src/__tests__/utils/markdownit/fixtures/index.ts ./scripts/githooks/check-file-format.sh
35+ entry : /usr/bin/env check=branch ./scripts/githooks/check-file-format.sh
4636 language : script
4737 pass_filenames : false
4838 - repo : local
Original file line number Diff line number Diff line change @@ -66,11 +66,9 @@ function main() {
6666 ;;
6767 esac
6868
69- if command -v editorconfig-checker > /dev/null 2>&1 && ! is-arg-true " ${FORCE_USE_DOCKER:- false} " ; then
70- echo " Running editorconfig-checker natively"
69+ if command -v editorconfig > /dev/null 2>&1 && ! is-arg-true " ${FORCE_USE_DOCKER:- false} " ; then
7170 filter=" $filter " dry_run_opt=" ${dry_run_opt:- } " run-editorconfig-natively
7271 else
73- echo " Running editorconfig-checker in Docker"
7472 filter=" $filter " dry_run_opt=" ${dry_run_opt:- } " run-editorconfig-in-docker
7573 fi
7674}
@@ -82,7 +80,7 @@ function main() {
8280function run-editorconfig-natively() {
8381
8482 # shellcheck disable=SC2046,SC2086
85- editorconfig-checker \
83+ editorconfig \
8684 --exclude ' .git/' $dry_run_opt $( $filter )
8785}
8886
Original file line number Diff line number Diff line change @@ -52,21 +52,21 @@ function main() {
5252 esac
5353
5454 if [ -n " $files " ]; then
55- if command -v markdownlint-cli > /dev/null 2>&1 && ! is-arg-true " ${FORCE_USE_DOCKER:- false} " ; then
55+ if command -v markdownlint > /dev/null 2>&1 && ! is-arg-true " ${FORCE_USE_DOCKER:- false} " ; then
5656 files=" $files " run-markdownlint-natively
5757 else
5858 files=" $files " run-markdownlint-in-docker
5959 fi
6060 fi
6161}
6262
63- # Run markdownlint-cli natively.
63+ # Run markdownlint natively.
6464# Arguments (provided as environment variables):
6565# files=[files to check]
6666function run-markdownlint-natively() {
6767
6868 # shellcheck disable=SC2086
69- markdownlint-cli \
69+ markdownlint \
7070 $files \
7171 --config " $PWD /scripts/config/markdownlint.yaml"
7272}
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ EXCLUDED_FILES=(
3333 " Makefile"
3434 " project.code-workspace"
3535 " src/jekyll-devcontainer/src/.devcontainer/devcontainer.json"
36- " .eslintrc.json"
3736)
3837
3938EXCLUDED_DIRS=(
You can’t perform that action at this time.
0 commit comments