File tree Expand file tree Collapse file tree 11 files changed +43
-21
lines changed
create-lines-of-code-report Expand file tree Collapse file tree 11 files changed +43
-21
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1+ {
2+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu-24.04" ,
3+ "name" : " Ubuntu 24"
4+ }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ jobs:
156156 - name : " Checkout code"
157157 uses : actions/checkout@v5
158158 - name : " Setup ASDF"
159- uses : asdf-vm/actions/setup@v4
159+ uses : asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47 # v
160160 - name : " Perform Setup"
161161 uses : ./.github/actions/setup
162162 - name : " Trivy Scan"
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ deploy: # Deploy the project artefact to the target environment @Pipeline
2525 # TODO: Implement the artefact deployment step
2626
2727clean :: # Clean-up project resources (main) @Operations
28- $(MAKE ) -C docs clean
29- $(MAKE ) -C src/cloudevents clean
30- $(MAKE ) -C src/eventcatalogasyncapiimporter clean
31- $(MAKE ) -C src/eventcatalogasyncapiimporter clean-output
28+ $(MAKE ) -C docs clean && \
29+ $(MAKE ) -C src/cloudevents clean && \
30+ $(MAKE ) -C src/eventcatalogasyncapiimporter clean && \
31+ $(MAKE ) -C src/eventcatalogasyncapiimporter clean-output && \
3232 rm -f .version
3333 # TODO: Implement project resources clean-up step
3434
Original file line number Diff line number Diff line change 2727 "autoOpenWorkspace.enableAutoOpenIfSingleWorkspace" : true ,
2828 "githubCodeOwners.format.enabled" : true ,
2929 "workspace-terminals.switchTerminal" : " never" ,
30- "workspace-terminals.auto" : " always " ,
30+ "workspace-terminals.auto" : " never " ,
3131 "markdownlint.config" : {
3232 "MD013" : false ,
3333 "MD024" : { "siblings_only" : true },
7777 ".github/copilot-instructions.md" : true ,
7878 ".github/instructions" : true
7979 },
80- "terminal.integrated.scrollback" : 10000
80+ "terminal.integrated.scrollback" : 10000 ,
81+ "shellcheck.run" : " onSave"
8182 },
8283 "extensions" : {
8384 "recommendations" : [
You can’t perform that action at this time.
0 commit comments