Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
fd36993
feat: scaffold app with cdk
tstephen-nhs Mar 19, 2026
00aaa8b
chore: migrate statemachine to JSONata
tstephen-nhs Mar 20, 2026
9f6335f
chore: further json path -> jsonata
tstephen-nhs Mar 24, 2026
500749f
chore: log and continue if TC params not present
tstephen-nhs Mar 24, 2026
cac5d12
fix: no allow TS imports as still on node module resolution
tstephen-nhs Mar 24, 2026
f794c59
fix: typo
tstephen-nhs Mar 24, 2026
b9d472a
fix: make dependencies
tstephen-nhs Mar 24, 2026
05c4121
test: minimal fail-fast cdk synth test
tstephen-nhs Mar 24, 2026
2db5194
docs: example .env file
tstephen-nhs Mar 24, 2026
ebdbb2b
fix: non-prod spine and ss hosts
tstephen-nhs Mar 24, 2026
f11308e
chore: npm audit fix
tstephen-nhs Mar 27, 2026
0f407d8
chore: test latest eps-cdk-utils
tstephen-nhs Mar 30, 2026
c1c9613
feat: adopt cdk parameters construct
tstephen-nhs Mar 30, 2026
461aa46
fix: use revised parameters construct
tstephen-nhs Mar 30, 2026
dbecf32
chore: add missing file, sane defaults for TC params
tstephen-nhs Mar 30, 2026
94a33a8
feat: SSv3 API key from existing secret by name, not ARN
tstephen-nhs Mar 31, 2026
6cc0895
feat: sandbox app
tstephen-nhs Apr 1, 2026
3147b3a
fix: getConfigFromEnvVar calls
tstephen-nhs Apr 1, 2026
5e83527
ops: cdk workflows, currently both cdk and sam
tstephen-nhs Apr 2, 2026
fbfdc07
ops: introduce toggle between sam and cdk
tstephen-nhs Apr 2, 2026
41bf0e8
feat: alarms
tstephen-nhs Apr 2, 2026
7e92406
ops: tmp add cdk-utils tarball
tstephen-nhs Apr 2, 2026
9591c6c
Merge branch 'main' into aea-6257-cdk-shell
tstephen-nhs Apr 7, 2026
96ae38f
ops: tmp inc cdk-utils tar
tstephen-nhs Apr 7, 2026
cae08e2
chore: regen lock file
tstephen-nhs Apr 7, 2026
35aa667
ops: force npm 11.6.2 to avoid lock file format issue
tstephen-nhs Apr 7, 2026
9d2d18b
Revert "ops: force npm 11.6.2 to avoid lock file format issue"
tstephen-nhs Apr 7, 2026
9010536
chore: update pacckage lock after devcontainer rebuild
tstephen-nhs Apr 7, 2026
4d13168
chore: fix linting issue with NodeJS namespace
tstephen-nhs Apr 7, 2026
d356ddc
test: synt test requires secrets layer
tstephen-nhs Apr 7, 2026
a9687d6
fix: stack name compatibility between sam and cdk
tstephen-nhs Apr 7, 2026
b3e260f
ops: debug lack of reg test run
tstephen-nhs Apr 7, 2026
bb51e3f
ops: preserve required gate jobs
tstephen-nhs Apr 8, 2026
e471e21
ops: fix sandbox app name, check sam still works
tstephen-nhs Apr 8, 2026
eae2477
Merge branch 'main' into aea-6257-cdk-shell
tstephen-nhs Apr 8, 2026
b06c29a
chore: latest qc
tstephen-nhs Apr 8, 2026
2d07b8f
chore: latest qc
tstephen-nhs Apr 8, 2026
39e27f5
chore: switch cdk utils to official build
tstephen-nhs Apr 9, 2026
1d3c61e
ops: deploy cdk alongside sam
tstephen-nhs Apr 9, 2026
b79d99a
ops: enable regression tests
tstephen-nhs Apr 9, 2026
40d4eaf
ops: permissions
tstephen-nhs Apr 9, 2026
cdd1953
chore: update lock file
tstephen-nhs Apr 9, 2026
21a51d0
fix: middy/powertools incompatibility
tstephen-nhs Apr 9, 2026
32a4a3a
chore: exclude cdk.out from linting
tstephen-nhs Apr 9, 2026
9e2f51f
fix: dep issue
tstephen-nhs Apr 9, 2026
0aa7bad
ops: enable cdk
tstephen-nhs Apr 9, 2026
7c8b1df
fix: nag suppressions in sandbox
tstephen-nhs Apr 9, 2026
a2f6fd9
fix: reg test invocation
tstephen-nhs Apr 9, 2026
032f2e3
fix: invocation of PFP-AWS tests
tstephen-nhs Apr 9, 2026
a99a903
fix: stack name to regression test alignment
tstephen-nhs Apr 9, 2026
25cdabe
ops: lock down workflow perms
tstephen-nhs Apr 10, 2026
599f94f
chore: pre-commit link cdk
tstephen-nhs Apr 10, 2026
3e20683
chore: add cdk to sonar
tstephen-nhs Apr 10, 2026
5456799
chore: update line numbers in zizmor
tstephen-nhs Apr 10, 2026
36c7bdd
ops: permit cdk to access service search secret
tstephen-nhs Apr 10, 2026
4e6071b
chore: hold refs to cdk constructs so sonar happy
tstephen-nhs Apr 10, 2026
f9f248c
chore: add sonar for 'clean as you code'
tstephen-nhs Apr 10, 2026
39e0a02
chore: more sonar
tstephen-nhs Apr 10, 2026
3b4ce08
test: increase coverage
tstephen-nhs Apr 10, 2026
d8dcdf3
fix: add SS secret policy to lambda
tstephen-nhs Apr 10, 2026
4fd80a0
chore: use explicit encryption for test topic
tstephen-nhs Apr 10, 2026
51b6d4e
chore: ignore sonar
tstephen-nhs Apr 10, 2026
a9c73b1
ops: import policy arn
tstephen-nhs Apr 10, 2026
358048f
Fix: align CDK PR stack names with deletePrStacks prefix pfp-api
tstephen-nhs Apr 10, 2026
ec9ea75
Feat: add CDK zero-downtime deployment to ci.yml and release.yml
tstephen-nhs Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"mkhl.direnv",
"github.vscode-github-actions",
"Orta.vscode-jest",
"jebbs.plantuml"
"jebbs.plantuml",
"sonarsource.sonarlint-vscode"
],
"settings": {
"python.defaultInterpreterPath": "/workspaces/prescriptionsforpatients/.venv/bin/python",
Expand Down
35 changes: 35 additions & 0 deletions .github/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Install dependencies"
description: "Install dependencies including caching of npm packages"

inputs:
npm-required:
description: "Set to true if npm dependencies are already installed"
required: false
default: "true"
GITHUB_TOKEN:
description: "GitHub token to access private npm packages"
required: true

runs:
using: "composite"
steps:
- name: Setting up .npmrc
if: ${{ inputs.npm-required == 'true' }}
env:
NODE_AUTH_TOKEN: ${{ inputs.GITHUB_TOKEN }}
shell: bash
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: Cache npm dependencies
if: ${{ inputs.npm-required == 'true' }}
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: make install
if: ${{ inputs.npm-required == 'true' }}
shell: bash
run: make install
69 changes: 69 additions & 0 deletions .github/workflows/cdk_package_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: cdk package code

on:
workflow_call:
inputs:
pinned_image:
type: string
required: true

permissions: {}

jobs:
package_code:
runs-on: ubuntu-22.04
container:
image: ${{ inputs.pinned_image }}
options: --user 1001:1001 --group-add 128
defaults:
run:
shell: bash
permissions:
id-token: write
contents: read
packages: read
steps:
- name: copy .tool-versions
run: |
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
cp /home/vscode/.tool-versions ./.tool-versions

- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: false

- name: Setting up .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: make install and compile
run: |
make install
make compile

- name: download the get secrets lambda layer
run: |
make download-get-secrets-layer

- name: Tar files
run: |
tar -cf artifact.tar \
.github \
packages \
node_modules \
package.json \
package-lock.json \
tsconfig.defaults.json \
tsconfig.build.json \
Makefile

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
name: upload build artifact
with:
name: build_artifact
path: artifact.tar
Loading
Loading