Skip to content

Commit 6107867

Browse files
authored
Merge branch 'main' into aea-6256-cdk-statemachine
2 parents af7a124 + 2a856a6 commit 6107867

6 files changed

Lines changed: 27 additions & 10 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
"args": {
77
"DOCKER_GID": "${env:DOCKER_GID:}",
88
"IMAGE_NAME": "node_24_python_3_14",
9-
"IMAGE_VERSION": "v1.0.7",
9+
"IMAGE_VERSION": "v1.2.0",
1010
"USER_UID": "${localEnv:USER_ID:}",
1111
"USER_GID": "${localEnv:GROUP_ID:}"
1212
}
1313
},
14-
// Conditionally register git-secrets to avoid failures when it is already configured
15-
// but continue to fail in the case of genuine unexpected errors
1614
"postCreateCommand": "bash -lc 'if ! git config --get-all secrets.patterns | grep -Fq AKIA; then git-secrets --register-aws; fi; if ! git config --get-all secrets.providers | grep -Fxq \"cat /usr/share/secrets-scanner/nhsd-rules-deny.txt\"; then git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt; fi'",
1715
"mounts": [
1816
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
2828
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
2929
get_config_values:
30-
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@97059401fbec4c0914532277dfe8ce95dd3213fd
30+
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc
3131
with:
3232
verify_published_from_main_image: true
3333
quality_checks:

.github/workflows/pull_request.yml

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

1010
jobs:
1111
get_config_values:
12-
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@97059401fbec4c0914532277dfe8ce95dd3213fd
12+
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc
1313
with:
1414
verify_published_from_main_image: false
1515
dependabot-auto-approve-and-merge:
@@ -19,7 +19,7 @@ jobs:
1919
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
2020
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
2121
pr_title_format_check:
22-
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@97059401fbec4c0914532277dfe8ce95dd3213fd
22+
uses: NHSDigital/eps-common-workflows/.github/workflows/pr_title_check.yml@b0172dbdb3af4ae232873106553c316d79d784fc
2323
quality_checks:
2424
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks-devcontainer.yml@352f15f692c23b18f67215ad858f27b06a878717
2525
needs: [get_config_values, get_commit_id]

.github/workflows/release.yml

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

1111
jobs:
1212
get_config_values:
13-
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@97059401fbec4c0914532277dfe8ce95dd3213fd
13+
uses: NHSDigital/eps-common-workflows/.github/workflows/get-repo-config.yml@b0172dbdb3af4ae232873106553c316d79d784fc
1414
with:
1515
verify_published_from_main_image: true
1616
get_commit_id:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Update Devcontainer Version
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 18 * * 4"
7+
8+
jobs:
9+
update_devcontainer_version:
10+
uses: NHSDigital/eps-common-workflows/.github/workflows/update-dev-container-version.yml@23342d86a245c076937abd6aecdd0ce06446b1e6
11+
permissions:
12+
contents: read
13+
packages: read
14+
pull-requests: write
15+
with:
16+
base_branch: main
17+
secrets:
18+
CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}
19+
CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }}

packages/cdkConstructs/tests/constructs/RestApiGateway.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("RestApiGateway without mTLS", () => {
2424
statements: [
2525
new PolicyStatement({
2626
actions: ["lambda:InvokeFunction"],
27-
resources: ["*"]
27+
resources: ["arn:aws:lambda:eu-west-2:123456789012:function:test-function"]
2828
})
2929
]
3030
})
@@ -181,7 +181,7 @@ describe("RestApiGateway with CSOC logs", () => {
181181
statements: [
182182
new PolicyStatement({
183183
actions: ["lambda:InvokeFunction"],
184-
resources: ["*"]
184+
resources: ["arn:aws:lambda:eu-west-2:123456789012:function:test-function"]
185185
})
186186
]
187187
})
@@ -229,7 +229,7 @@ describe("RestApiGateway with mTLS", () => {
229229
statements: [
230230
new PolicyStatement({
231231
actions: ["lambda:InvokeFunction"],
232-
resources: ["*"]
232+
resources: ["arn:aws:lambda:eu-west-2:123456789012:function:test-function"]
233233
})
234234
]
235235
})

0 commit comments

Comments
 (0)