Skip to content

Commit 153fefa

Browse files
Drift from template
1 parent 0f0d94c commit 153fefa

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

.github/actions/create-lines-of-code-report/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
echo "secrets_exist=${{ inputs.idp_aws_report_upload_role_name != '' && inputs.idp_aws_report_upload_bucket_endpoint != '' }}" >> $GITHUB_OUTPUT
4545
- name: "Authenticate to send the report"
4646
if: steps.check.outputs.secrets_exist == 'true'
47-
uses: aws-actions/configure-aws-credentials@v4
47+
uses: aws-actions/configure-aws-credentials@v2
4848
with:
4949
role-to-assume: arn:aws:iam::${{ inputs.idp_aws_report_upload_account_id }}:role/${{ inputs.idp_aws_report_upload_role_name }}
5050
aws-region: ${{ inputs.idp_aws_report_upload_region }}

.github/actions/scan-dependencies/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
run: echo "secrets_exist=${{ inputs.idp_aws_report_upload_role_name != '' && inputs.idp_aws_report_upload_bucket_endpoint != '' }}" >> $GITHUB_OUTPUT
5959
- name: "Authenticate to send the reports"
6060
if: steps.check.outputs.secrets_exist == 'true'
61-
uses: aws-actions/configure-aws-credentials@v4
61+
uses: aws-actions/configure-aws-credentials@v2
6262
with:
6363
role-to-assume: arn:aws:iam::${{ inputs.idp_aws_report_upload_account_id }}:role/${{ inputs.idp_aws_report_upload_role_name }}
6464
aws-region: ${{ inputs.idp_aws_report_upload_region }}

infrastructure/terraform/bin/terraform.sh

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -539,24 +539,26 @@ fi;
539539
[ -f "${dynamic_file_path}" ] && tf_var_file_paths+=("${dynamic_file_path}");
540540

541541
# Warn on duplication
542-
duplicate_variables="$(cat "${tf_var_file_paths[@]}" | sed -n -e 's/\(^[a-zA-Z0-9_\-]\+\)\s*=.*$/\1/p' | sort | uniq -d)";
543-
[ -n "${duplicate_variables}" ] \
544-
&& echo -e "
545-
###################################################################
546-
# WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING #
547-
###################################################################
548-
The following input variables appear to be duplicated:
549-
550-
${duplicate_variables}
551-
552-
This could lead to unexpected behaviour. Overriding of variables
553-
has previously been unpredictable and is not currently supported,
554-
but it may work.
555-
556-
Recent changes to terraform might give you useful overriding and
557-
map-merging functionality, please use with caution and report back
558-
on your successes & failures.
559-
###################################################################";
542+
if [ ${#tf_var_file_paths[@]} -gt 0 ]; then
543+
duplicate_variables="$(cat "${tf_var_file_paths[@]}" | sed -n -e 's/\(^[a-zA-Z0-9_\-]\+\)\s*=.*$/\1/p' | sort | uniq -d)";
544+
[ -n "${duplicate_variables}" ] \
545+
&& echo -e "
546+
###################################################################
547+
# WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING #
548+
###################################################################
549+
The following input variables appear to be duplicated:
550+
551+
${duplicate_variables}
552+
553+
This could lead to unexpected behaviour. Overriding of variables
554+
has previously been unpredictable and is not currently supported,
555+
but it may work.
556+
557+
Recent changes to terraform might give you useful overriding and
558+
map-merging functionality, please use with caution and report back
559+
on your successes & failures.
560+
###################################################################";
561+
fi
560562

561563
# Build up the tfvars arguments for terraform command line
562564
for file_path in "${tf_var_file_paths[@]}"; do

scripts/config/gitleaks.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SEE: https://github.com/gitleaks/gitleaks/#configuration
2-
# Do not edit this file directly as it will be overwritten by changes from the nhs-notify-repository-template on next sync
32

43
[extend]
54
useDefault = true # SEE: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml

scripts/init.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include scripts/tests/test.mk
77
# ==============================================================================
88

99
runner-act: # Run GitHub Actions locally - mandatory: workflow=[workflow file name], job=[job name] @Development
10-
. ./scripts/docker/docker.lib.sh
10+
source ./scripts/docker/docker.lib.sh
1111
act $(shell [[ "${VERBOSE}" =~ ^(true|yes|y|on|1|TRUE|YES|Y|ON)$$ ]] && echo --verbose) \
1212
--container-architecture linux/amd64 \
1313
--platform ubuntu-latest=$$(name="ghcr.io/nhs-england-tools/github-runner-image" docker-get-image-version-and-pull) \
@@ -21,7 +21,7 @@ runner-act: # Run GitHub Actions locally - mandatory: workflow=[workflow file na
2121
--job ${job}
2222

2323
version-create-effective-file: # Create effective version file - optional: dir=[path to the VERSION file to use, default is '.'], BUILD_DATETIME=[build date and time in the '%Y-%m-%dT%H:%M:%S%z' format generated by the CI/CD pipeline, default is current date and time] @Development
24-
. ./scripts/docker/docker.lib.sh
24+
source scripts/docker/docker.lib.sh
2525
version-create-effective-file
2626

2727
shellscript-lint-all: # Lint all shell scripts in this project, do not fail on error, just print the error messages @Quality

scripts/maintenance/merge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const tokenize = line => {
2525
if (line === '') {
2626
return [];
2727
}
28-
return line.split(/\s+|[:=]/).filter(x => x !== '#' && x !== '').slice(0, 1);
28+
return line.split(/\s+/).filter(x => x !== '#').slice(0, 1);
2929
};
3030
const lines1Tokens = lines1.flatMap(tokenize);
3131

0 commit comments

Comments
 (0)