Skip to content

Feature/ccm 17116 metrics #2641

Feature/ccm 17116 metrics

Feature/ccm 17116 metrics #2641

Triggered via pull request April 27, 2026 15:33
Status Failure
Total duration 4m 58s
Artifacts 5

cicd-1-pull-request.yaml

on: pull_request
Set CI/CD metadata
6s
Set CI/CD metadata
Commit stage  /  Scan secrets
17s
Commit stage / Scan secrets
Commit stage  /  Check file format
7s
Commit stage / Check file format
Commit stage  /  Check Markdown format
5s
Commit stage / Check Markdown format
Commit stage  /  Check English usage
9s
Commit stage / Check English usage
Commit stage  /  Check TODO usage
5s
Commit stage / Check TODO usage
Commit stage  /  Count lines of code
9s
Commit stage / Count lines of code
Commit stage  /  Scan dependencies
59s
Commit stage / Scan dependencies
Commit stage  /  Detect Terraform Changes
6s
Commit stage / Detect Terraform Changes
Commit stage  /  Run terraform-docs
11s
Commit stage / Run terraform-docs
Commit stage  /  Lint Terraform
27s
Commit stage / Lint Terraform
Test stage  /  Detect Schema Changes
6s
Test stage / Detect Schema Changes
Test stage  /  Unit tests
3m 41s
Test stage / Unit tests
Test stage  /  Check generated dependencies
0s
Test stage / Check generated dependencies
Test stage  /  Perform static analysis
Test stage / Perform static analysis
Build stage  /  Detect Documentation Changes
Build stage / Detect Documentation Changes
Build stage  /  Build Docs
Build stage / Build Docs
Trigger dynamic environment creation
0s
Trigger dynamic environment creation
Publish stage  /  Publish packages
Publish stage / Publish packages
Acceptance stage  /  Accessibility test
Acceptance stage / Accessibility test
Acceptance stage  /  Integration test
Acceptance stage / Integration test
Acceptance stage  /  Load test
Acceptance stage / Load test
Acceptance stage  /  Security test
Acceptance stage / Security test
Acceptance stage  /  UI performance test
Acceptance stage / UI performance test
Acceptance stage  /  UI test
Acceptance stage / UI test
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 10 warnings
Test stage / Linting: utils/utils/src/event-publisher/event-publisher.ts#L66
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed
Test stage / Linting: utils/utils/src/cloudwatch/metric-handler.ts#L55
Expected object keys to be in sorted order. Expected extraDimensions to be before timestamp
Test stage / Linting: utils/utils/src/__tests__/event-publisher/event-publisher.test.ts#L164
Replace `['uk.nhs.notify.digital.letters.sent.v1_batchFailure',·'Count',·1` with `·[⏎······'uk.nhs.notify.digital.letters.sent.v1_batchFailure',⏎······'Count',⏎······1,⏎····`
Test stage / Linting: utils/utils/src/__tests__/event-publisher/event-publisher.test.ts#L163
Replace `['uk.nhs.notify.digital.letters.sent.v1_batchSuccess',·'Count',·1` with `·[⏎······'uk.nhs.notify.digital.letters.sent.v1_batchSuccess',⏎······'Count',⏎······1,⏎····`
Test stage / Linting: utils/utils/src/__tests__/event-publisher/event-publisher.test.ts#L81
Replace `'uk.nhs.notify.digital.letters.sent.v1_batchSuccess',·'Count',·2` with `⏎······'uk.nhs.notify.digital.letters.sent.v1_batchSuccess',⏎······'Count',⏎······2,⏎····`
Test stage / Typecheck
Process completed with exit code 2.
Test stage / Typecheck
nhs-notify-digital-move-scanned-files-lambda#typecheck: command (/home/runner/work/nhs-notify-digital-letters/nhs-notify-digital-letters/lambdas/move-scanned-files-lambda) /opt/hostedtoolcache/node/24.10.0/x64/bin/npm run typecheck exited (2)
Test stage / Typecheck
Property 'dlMetricsNamespace' is missing in type '{ eventPublisherEventBusArn: string; eventPublisherDlqUrl: string; environment: string; keyPrefixUnscannedFiles: string; unscannedFileS3BucketName: string; safeFileS3BucketName: string; quarantineFileS3BucketName: string; }' but required in type 'MoveScannedFilesConfig'.
Test stage / Unit tests
Process completed with exit code 2.
Test stage / Unit tests
nhs-notify-digital-letters-file-scanner-lambda#test:unit: command (/home/runner/work/nhs-notify-digital-letters/nhs-notify-digital-letters/lambdas/file-scanner-lambda) /opt/hostedtoolcache/node/24.10.0/x64/bin/npm run test:unit exited (1)
Test stage / Detect Schema Changes
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test stage / Contract tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test stage / Linting: utils/utils/src/event-publisher/event-publisher.ts#L121
Function Call Object Injection Sink
Test stage / Linting: utils/utils/src/dynamodb/delete-dynamo-batch.ts#L47
Generic Object Injection Sink
Test stage / Linting: utils/utils/src/dynamodb/delete-dynamo-batch.ts#L34
Generic Object Injection Sink
Test stage / Linting: utils/utils/src/config-reader.ts#L69
Variable Assigned to Object Injection Sink
Test stage / Linting: utils/utils/src/cache/cache.ts#L52
Generic Object Injection Sink
Test stage / Linting: utils/utils/src/cache/cache.ts#L33
Variable Assigned to Object Injection Sink
Test stage / Unit tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Artifacts

Produced during runtime
Name Size Digest
lines-of-code-report.json.zip
966 Bytes
sha256:666e73a966581e4d3fb03fd13871371e1b91e886c56f458fb5f181cd6bd423ef
pact-contracts
609 Bytes
sha256:29b99d48040da00142daf7b05ac894a6897739d0070b06dfc507453207a26ff2
sbom-repository-report.json.zip
379 KB
sha256:d4716ffc2579646e3c88dd834a6bc7bf7eec1289de3667a4598bb2ce5f509ef3
unit-tests
1.99 MB
sha256:328298badf0294ac384b7c629c66599a650a0e02a6b52cc6296c7900da3edaf5
vulnerabilities-repository-report.json.zip
4.43 KB
sha256:de8ff20d93d530cda23945b6fd0388a51e39718744369a83a538d1c703464d21