Skip to content

Commit 7bbcdba

Browse files
Merge branch 'main' into feature/CCM-13343_Trivy_Package_and_Library_Scans
2 parents 2b7f99b + 571608e commit 7bbcdba

File tree

134 files changed

+5000
-2479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+5000
-2479
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"containerEnv": {
33
"GITHUBMONITOR": "false",
44
"MAKECONFIG": "true",
5-
"SHOWWELCOME": "true",
5+
"SHOWWELCOME": "false",
66
"UPDATEFROMTEMPLATE": "false"
77
},
8-
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded-codespaces:main",
9-
"name": "Codespaces Online Development"
8+
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded-codespaces:1.0.19",
9+
"name": "Codespaces"
1010
}

.devcontainer/nhs-notify-devcontainer-loaded/devcontainer.json renamed to .devcontainer/local-dev/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"containerEnv": {
33
"GITHUBMONITOR": "false",
44
"MAKECONFIG": "true",
5-
"SHOWWELCOME": "true",
5+
"SHOWWELCOME": "false",
66
"UPDATEFROMTEMPLATE": "false"
77
},
8-
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded:1.0.17",
9-
"name": "Notify Loaded 1.0.17",
8+
"image": "ghcr.io/nhsdigital/nhs-notify-devcontainer-loaded:1.0.19",
9+
"name": "Local Development",
1010
"postStartCommand": "mkdir -p ~/.gnupg && echo '## 1-day timeout' > ~/.gnupg/gpg-agent.conf && echo 'default-cache-ttl 86400' >> ~/.gnupg/gpg-agent.conf && echo 'max-cache-ttl 86400' >> ~/.gnupg/gpg-agent.conf && gpg-connect-agent reloadagent /bye 2>/dev/null || true"
1111
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
3+
"name": "Ubuntu 24"
4+
}

.github/actions/build-docs/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ runs:
3030
working-directory: ./docs
3131
# Outputs to the './_site' directory by default
3232
shell: bash
33-
run: make build-ci BASE_URL=${{ steps.pages.outputs.base_path }} VERSION=${{ inputs.version }}
33+
run: make build-ci BASE_URL="${BASE_URL}" VERSION="${VERSION}"
3434
#run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
3535
env:
3636
JEKYLL_ENV: production
37+
BASE_URL: ${{ steps.pages.outputs.base_path }}
38+
VERSION: ${{ inputs.version }}
3739
- name: Upload artifact
3840
# Automatically uploads an artifact from the './_site' directory by default
3941
uses: actions/upload-pages-artifact@v3

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ runs:
2424
steps:
2525
- name: "Create CLOC report"
2626
shell: bash
27+
env:
28+
BUILD_DATETIME: ${{ inputs.build_datetime }}
2729
run: |
28-
export BUILD_DATETIME=${{ inputs.build_datetime }}
2930
./scripts/reports/create-lines-of-code-report.sh
3031
- name: "Compress CLOC report"
3132
shell: bash
@@ -51,7 +52,10 @@ runs:
5152
- name: "Send the CLOC report to the central location"
5253
shell: bash
5354
if: steps.check.outputs.secrets_exist == 'true'
55+
env:
56+
BUCKET_ENDPOINT: ${{ inputs.idp_aws_report_upload_bucket_endpoint }}
57+
BUILD_TIMESTAMP: ${{ inputs.build_timestamp }}
5458
run: |
5559
aws s3 cp \
5660
./lines-of-code-report.json.zip \
57-
${{ inputs.idp_aws_report_upload_bucket_endpoint }}/${{ inputs.build_timestamp }}-lines-of-code-report.json.zip
61+
"$BUCKET_ENDPOINT/$BUILD_TIMESTAMP-lines-of-code-report.json.zip"

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ runs:
2424
steps:
2525
- name: "Generate SBOM"
2626
shell: bash
27+
env:
28+
BUILD_DATETIME: ${{ inputs.build_datetime }}
2729
run: |
28-
export BUILD_DATETIME=${{ inputs.build_datetime }}
2930
./scripts/reports/create-sbom-report.sh
3031
- name: "Compress SBOM report"
3132
shell: bash
@@ -39,8 +40,9 @@ runs:
3940
retention-days: 21
4041
- name: "Scan vulnerabilities"
4142
shell: bash
43+
env:
44+
BUILD_DATETIME: ${{ inputs.build_datetime }}
4245
run: |
43-
export BUILD_DATETIME=${{ inputs.build_datetime }}
4446
./scripts/reports/scan-vulnerabilities.sh
4547
- name: "Compress vulnerabilities report"
4648
shell: bash
@@ -65,10 +67,13 @@ runs:
6567
- name: "Send the SBOM and vulnerabilities reports to the central location"
6668
shell: bash
6769
if: steps.check.outputs.secrets_exist == 'true'
70+
env:
71+
BUCKET_ENDPOINT: ${{ inputs.idp_aws_report_upload_bucket_endpoint }}
72+
BUILD_TIMESTAMP: ${{ inputs.build_timestamp }}
6873
run: |
6974
aws s3 cp \
7075
./sbom-repository-report.json.zip \
71-
${{ inputs.idp_aws_report_upload_bucket_endpoint }}/${{ inputs.build_timestamp }}-sbom-repository-report.json.zip
76+
"$BUCKET_ENDPOINT/$BUILD_TIMESTAMP-sbom-repository-report.json.zip"
7277
aws s3 cp \
7378
./vulnerabilities-repository-report.json.zip \
74-
${{ inputs.idp_aws_report_upload_bucket_endpoint }}/${{ inputs.build_timestamp }}-vulnerabilities-repository-report.json.zip
79+
"$BUCKET_ENDPOINT/$BUILD_TIMESTAMP-vulnerabilities-repository-report.json.zip"

.github/workflows/scheduled-repository-template-sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Create Pull Request
3434
if: ${{ !env.ACT }}
35-
uses: peter-evans/[email protected]
35+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3636
with:
3737
token: ${{ secrets.GITHUB_TOKEN }}
3838
commit-message: Drift from template

.github/workflows/stage-2-test.yaml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
steps:
5353
- name: "Checkout code"
5454
uses: actions/checkout@v5
55+
- uses: actions/setup-node@v6
56+
with:
57+
node-version: 24.10.0
5558
- name: "Repo setup"
5659
run: |
5760
npm ci
@@ -66,12 +69,12 @@ jobs:
6669
steps:
6770
- name: "Checkout code"
6871
uses: actions/checkout@v5
69-
- name: "Repo setup"
70-
run: |
71-
npm ci
72-
- name: "Generate dependencies"
73-
run: |
74-
npm run generate-dependencies
72+
- uses: actions/setup-node@v6
73+
with:
74+
node-version: 24.10.0
75+
- uses: actions/setup-python@v6
76+
with:
77+
python-version: '3.14'
7578
- name: "Run unit test suite"
7679
run: |
7780
make test-unit
@@ -99,12 +102,9 @@ jobs:
99102
steps:
100103
- name: "Checkout code"
101104
uses: actions/checkout@v5
102-
- name: "Repo setup"
103-
run: |
104-
npm ci
105-
- name: "Generate dependencies"
106-
run: |
107-
npm run generate-dependencies
105+
- uses: actions/setup-node@v6
106+
with:
107+
node-version: 24.10.0
108108
- name: "Run linting"
109109
run: |
110110
make test-lint
@@ -115,12 +115,9 @@ jobs:
115115
steps:
116116
- name: "Checkout code"
117117
uses: actions/checkout@v5
118-
- name: "Repo setup"
119-
run: |
120-
npm ci
121-
- name: "Generate dependencies"
122-
run: |
123-
npm run generate-dependencies
118+
- uses: actions/setup-node@v6
119+
with:
120+
node-version: 24.10.0
124121
- name: "Run typecheck"
125122
run: |
126123
make test-typecheck

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gitleaks 8.24.0
33
jq 1.6
44
nodejs 24.10.0
55
pre-commit 3.6.0
6-
python 3.13.2
6+
python 3.14.0
77
terraform 1.10.1
88
terraform-docs 0.19.0
99
trivy 0.61.0

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ deploy: # Deploy the project artefact to the target environment @Pipeline
2828
# TODO: Implement the artefact deployment step
2929

3030
clean:: # Clean-up project resources (main) @Operations
31-
$(MAKE) -C docs clean
32-
$(MAKE) -C src/cloudevents clean
33-
$(MAKE) -C src/eventcatalogasyncapiimporter clean
34-
$(MAKE) -C src/eventcatalogasyncapiimporter clean-output
35-
$(MAKE) -C src/python-schema-generator clean
31+
$(MAKE) -C docs clean && \
32+
$(MAKE) -C src/cloudevents clean && \
33+
$(MAKE) -C src/eventcatalogasyncapiimporter clean && \
34+
$(MAKE) -C src/eventcatalogasyncapiimporter clean-output && \
35+
$(MAKE) -C src/python-schema-generator clean && \
3636
rm -f .version
3737
npm run clean
3838

0 commit comments

Comments
 (0)