File tree Expand file tree Collapse file tree
create-lines-of-code-report Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525 steps :
2626 - name : Fetch terraform output
27- uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 with:
27+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
28+ with :
2829 name : terraform-output-${{ inputs.targetComponent }}
2930
3031 - name : Get Node version
Original file line number Diff line number Diff line change 2323 working-directory : " ./docs"
2424 - name : Setup Pages
2525 id : pages
26- uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 - name: Build with Jekyll
26+ uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
27+ - name : Build with Jekyll
2728 working-directory : ./docs
2829 # Outputs to the './_site' directory by default
2930 shell : bash
3334 JEKYLL_ENV : production
3435 - name : Upload artifact
3536 # Automatically uploads an artifact from the './_site' directory by default
36- uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with:
37+ uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
38+ with :
3739 path : " docs/_site/"
3840 name : jekyll-docs-${{ inputs.version }}
Original file line number Diff line number Diff line change 3232 run : zip lines-of-code-report.json.zip lines-of-code-report.json
3333 - name : " Upload CLOC report as an artefact"
3434 if : ${{ !env.ACT }}
35- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
35+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
36+ with :
3637 name : lines-of-code-report.json.zip
3738 path : ./lines-of-code-report.json.zip
3839 retention-days : 21
4344 echo "secrets_exist=${{ inputs.idp_aws_report_upload_role_name != '' && inputs.idp_aws_report_upload_bucket_endpoint != '' }}" >> $GITHUB_OUTPUT
4445 - name : " Authenticate to send the report"
4546 if : steps.check.outputs.secrets_exist == 'true'
46- uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4 with:
47+ uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
48+ with :
4749 role-to-assume : arn:aws:iam::${{ inputs.idp_aws_report_upload_account_id }}:role/${{ inputs.idp_aws_report_upload_role_name }}
4850 aws-region : ${{ inputs.idp_aws_report_upload_region }}
4951 - name : " Send the CLOC report to the central location"
Original file line number Diff line number Diff line change 1010 using : ' composite'
1111 steps :
1212 - name : ' Use Node.js'
13- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with:
13+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
14+ with :
1415 node-version-file : ' .tool-versions'
1516 registry-url : ' https://npm.pkg.github.com'
1617 scope : ' @nhsdigital'
Original file line number Diff line number Diff line change 3232 run : zip sbom-repository-report.json.zip sbom-repository-report.json
3333 - name : " Upload SBOM report as an artefact"
3434 if : ${{ !env.ACT }}
35- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
35+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
36+ with :
3637 name : sbom-repository-report.json.zip
3738 path : ./sbom-repository-report.json.zip
3839 retention-days : 21
4647 run : zip vulnerabilities-repository-report.json.zip vulnerabilities-repository-report.json
4748 - name : " Upload vulnerabilities report as an artefact"
4849 if : ${{ !env.ACT }}
49- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
50+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
51+ with :
5052 name : vulnerabilities-repository-report.json.zip
5153 path : ./vulnerabilities-repository-report.json.zip
5254 retention-days : 21
5658 run : echo "secrets_exist=${{ inputs.idp_aws_report_upload_role_name != '' && inputs.idp_aws_report_upload_bucket_endpoint != '' }}" >> $GITHUB_OUTPUT
5759 - name : " Authenticate to send the reports"
5860 if : steps.check.outputs.secrets_exist == 'true'
59- uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4 with:
61+ uses : aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
62+ with :
6063 role-to-assume : arn:aws:iam::${{ inputs.idp_aws_report_upload_account_id }}:role/${{ inputs.idp_aws_report_upload_role_name }}
6164 aws-region : ${{ inputs.idp_aws_report_upload_region }}
6265 - name : " Send the SBOM and vulnerabilities reports to the central location"
Original file line number Diff line number Diff line change @@ -108,5 +108,6 @@ jobs:
108108
109109 - name : Deploy to GitHub Pages
110110 id : deployment
111- uses : actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5 with:
111+ uses : actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5
112+ with :
112113 artifact_name : jekyll-docs-${{steps.get-asset-version.outputs.release_version}}
Original file line number Diff line number Diff line change 3030
3131 - name : Create Pull Request
3232 if : ${{ !env.ACT }}
33- uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 with:
33+ uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
34+ with :
3435 token : ${{ secrets.GITHUB_TOKEN }}
3536 commit-message : Drift from template
3637 branch : scheduledTemplateRepositorySync
Original file line number Diff line number Diff line change 5959 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060 # format to the repository Actions tab.
6161 - name : " Upload artifact"
62- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
62+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
63+ with :
6364 name : SARIF file
6465 path : results.sarif
6566 retention-days : 5
Original file line number Diff line number Diff line change @@ -70,13 +70,15 @@ jobs:
7070 run : |
7171 make test-unit
7272 - name : " Save the result of fast test suite"
73- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
73+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
74+ with :
7475 name : unit-tests
7576 path : " **/.reports/unit"
7677 include-hidden-files : true
7778 if : always()
7879 - name : " Save the result of code coverage"
79- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 with:
80+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
81+ with :
8082 name : code-coverage-report
8183 path : " .reports/lcov.info"
8284 test-lint :
@@ -135,7 +137,8 @@ jobs:
135137 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with:
136138 fetch-depth : 0 # Full history is needed to improving relevancy of reporting
137139 - name : " Download coverage report for SONAR"
138- uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 with:
140+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
141+ with :
139142 name : code-coverage-report
140143 - name : " Perform static analysis"
141144 uses : ./.github/actions/perform-static-analysis
Original file line number Diff line number Diff line change 4848 - uses : actions/checkout@v6.0.2
4949
5050 - name : " Use Node.js"
51- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with:
51+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
52+ with :
5253 node-version : " ${{ inputs.nodejs_version }}"
5354 registry-url : " https://npm.pkg.github.com"
5455 scope : " @nhsdigital"
You can’t perform that action at this time.
0 commit comments