Skip to content

Commit 92e9e99

Browse files
authored
Merge branch 'main' into old_hapi
2 parents 71bad54 + 9af6030 commit 92e9e99

File tree

10 files changed

+49
-23
lines changed

10 files changed

+49
-23
lines changed

.github/scripts/release_code.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,29 @@ LATEST_TRUSTSTORE_VERSION=$(aws s3api list-object-versions --bucket "${TRUSTSTOR
1414
export LATEST_TRUSTSTORE_VERSION
1515

1616
cd ../../ || exit
17-
make sam-deploy-package
17+
18+
REPO=eps-FHIR-validator-lambda
19+
CFN_DRIFT_DETECTION_GROUP="fhir-validator"
20+
if [[ "$STACK_NAME" =~ -pr-[0-9]+$ ]]; then
21+
CFN_DRIFT_DETECTION_GROUP="fhir-validator-pull-request"
22+
fi
23+
24+
25+
sam deploy \
26+
--template-file "$TEMPLATE_FILE" \
27+
--stack-name "$STACK_NAME" \
28+
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
29+
--region eu-west-2 \
30+
--s3-bucket "$artifact_bucket" \
31+
--s3-prefix "$ARTIFACT_BUCKET_PREFIX" \
32+
--config-file samconfig_package_and_deploy.toml \
33+
--no-fail-on-empty-changeset \
34+
--role-arn "$cloud_formation_execution_role" \
35+
--no-confirm-changeset \
36+
--force-upload \
37+
--tags "version=$VERSION_NUMBER stack=$STACK_NAME repo=$REPO cfnDriftDetectionGroup=$CFN_DRIFT_DETECTION_GROUP" \
38+
--parameter-overrides \
39+
EnableSplunk=true \
40+
LogLevel="$LOG_LEVEL" \
41+
LogRetentionDays="$LOG_RETENTION_DAYS" \
42+
EnableAlerts="$ENABLE_ALERTS"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
quality_checks:
12-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.0.5
12+
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.1.0
1313
secrets:
1414
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1515
with:
@@ -32,7 +32,7 @@ jobs:
3232
version_tag: ${{steps.output_version_tag.outputs.VERSION_TAG}}
3333
steps:
3434
- name: Checkout code
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3636
with:
3737
ref: ${{ env.BRANCH_NAME }}
3838
fetch-depth: 0

.github/workflows/delete_old_cloudformation_stacks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Steps represent a sequence of tasks that will be executed as part of the job
2020
steps:
2121
- name: Checkout local github scripts
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
with:
2424
ref: ${{ env.BRANCH_NAME }}
2525
sparse-checkout: |

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
quality_checks:
12-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.0.5
12+
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.1.0
1313
secrets:
1414
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1515
with:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
jobs:
1010
quality_checks:
11-
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.0.5
11+
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/quality-checks.yml@v4.1.0
1212
secrets:
1313
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1414
with:
@@ -31,7 +31,7 @@ jobs:
3131
version_tag: ${{steps.output_version_tag.outputs.VERSION_TAG}}
3232
steps:
3333
- name: Checkout code
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
ref: ${{ env.BRANCH_NAME }}
3737
fetch-depth: 0

.github/workflows/sam_package_code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
java-version: '21'
1717
distribution: 'adopt'
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
with:
2121
ref: ${{ env.BRANCH_NAME }}
2222

.github/workflows/sam_release_code.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
steps:
6666
- name: Checkout local github actions
67-
uses: actions/checkout@v4
67+
uses: actions/checkout@v5
6868
with:
6969
ref: ${{ env.BRANCH_NAME }}
7070
fetch-depth: 0
@@ -91,7 +91,7 @@ jobs:
9191
role-session-name: fhir-validator-lambda-release-code
9292

9393
- name: download build artifact
94-
uses: actions/download-artifact@v4
94+
uses: actions/download-artifact@v5
9595
with:
9696
name: ${{ inputs.BUILD_ARTIFACT }}
9797
path: .
@@ -100,13 +100,13 @@ jobs:
100100
shell: bash
101101
working-directory: .github/scripts
102102
env:
103-
artifact_bucket_prefix: fhir_validator/${{ inputs.ARTIFACT_BUCKET_PREFIX }}
103+
ARTIFACT_BUCKET_PREFIX: fhir_validator/${{ inputs.ARTIFACT_BUCKET_PREFIX }}
104104
COMMIT_ID: ${{ inputs.COMMIT_ID }}
105105
LOG_LEVEL: ${{ inputs.LOG_LEVEL }}
106106
LOG_RETENTION_DAYS: ${{ inputs.LOG_RETENTION_DAYS }}
107-
stack_name: ${{ inputs.STACK_NAME }}
107+
STACK_NAME: ${{ inputs.STACK_NAME }}
108108
TARGET_ENVIRONMENT: ${{ inputs.TARGET_ENVIRONMENT }}
109-
template_file: template.yaml
109+
TEMPLATE_FILE: template.yaml
110110
VERSION_NUMBER: ${{ inputs.VERSION_NUMBER }}
111111
ENABLE_ALERTS: ${{ inputs.ENABLE_ALERTS }}
112112
run: ./release_code.sh
@@ -141,7 +141,7 @@ jobs:
141141
DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }}
142142

143143
- name: Checkout gh-pages
144-
uses: actions/checkout@v4
144+
uses: actions/checkout@v5
145145
with:
146146
ref: gh-pages
147147
path: gh-pages

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"@semantic-release/changelog": "^6.0.3",
1515
"@semantic-release/release-notes-generator": "^14.0.3",
16-
"semantic-release": "^24.2.6"
16+
"semantic-release": "^24.2.7"
1717
},
1818
"dependencies": {
1919
"conventional-changelog-eslint": "^6.0.0"

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<legacy.fhir.version>5.4.2</legacy.fhir.version>
2222
<current.fhir.version>7.6.1</current.fhir.version>
2323
<log4j.version>2.24.3</log4j.version>
24-
<fasterxml.version>2.19.1</fasterxml.version>
24+
<fasterxml.version>2.19.2</fasterxml.version>
2525
<sonar.organization>nhsdigital</sonar.organization>
2626
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2727
<sonar.projectKey>NHSDigital_eps-FHIR-validator-lambda</sonar.projectKey>
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>org.junit</groupId>
3434
<artifactId>junit-bom</artifactId>
35-
<version>5.13.2</version>
35+
<version>5.13.4</version>
3636
<type>pom</type>
3737
<scope>import</scope>
3838
</dependency>
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>com.amazonaws</groupId>
6363
<artifactId>aws-lambda-java-events</artifactId>
64-
<version>3.16.0</version>
64+
<version>3.16.1</version>
6565
</dependency>
6666
<dependency>
6767
<groupId>com.amazonaws</groupId>
@@ -132,7 +132,7 @@
132132
<dependency>
133133
<groupId>org.mockito</groupId>
134134
<artifactId>mockito-core</artifactId>
135-
<version>5.18.0</version>
135+
<version>5.19.0</version>
136136
<scope>test</scope>
137137
</dependency>
138138
</dependencies>

0 commit comments

Comments
 (0)