Skip to content

Commit 9613aa4

Browse files
committed
Merge remote-tracking branch 'origin/main' into dev_container_build
2 parents ff192db + 2b3ddfd commit 9613aa4

12 files changed

Lines changed: 293 additions & 749 deletions

.gitallowed

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
22
.*\.gitallowed.*
33
id-token: write
44
password: \${{ secrets\.GITHUB_TOKEN }}
5+
def __init__\(self, token: str, owner: str, repo: str.*
6+
self\.token = token
7+
token = os\.environ\.get\(\"GH_TOKEN\"\)

.github/dependabot.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ updates:
77
directory: "/"
88
schedule:
99
interval: "weekly"
10-
day: "friday"
10+
day: "thursday"
1111
time: "18:00" # UTC
1212
open-pull-requests-limit: 20
1313
commit-message:
@@ -20,7 +20,7 @@ updates:
2020
directory: "/"
2121
schedule:
2222
interval: "weekly"
23-
day: "friday"
23+
day: "thursday"
2424
time: "18:00" # UTC
2525
open-pull-requests-limit: 20
2626
versioning-strategy: increase
@@ -34,7 +34,7 @@ updates:
3434
directory: "/"
3535
schedule:
3636
interval: "weekly"
37-
day: "friday"
37+
day: "thursday"
3838
time: "18:00" # UTC
3939
open-pull-requests-limit: 20
4040
versioning-strategy: increase

.github/workflows/combine-dependabot-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-22.04
4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
48+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
4949
with:
5050
repository: NHSDigital/eps-common-workflows
5151
sparse-checkout-cone-mode: false

.github/workflows/dependabot-auto-approve-and-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get token from Github App
2121
id: get_app_token
22-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42
22+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
2323
with:
2424
app-id: ${{ secrets.AUTOMERGE_APP_ID }}
2525
private-key: ${{ secrets.AUTOMERGE_PEM }}

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
6363
steps:
6464
- name: Checkout code
65-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
65+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
6666

6767
- name: Get asdf version
6868
id: asdf-version

.github/workflows/quality-checks.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
quality_checks:
4343
runs-on: ubuntu-22.04
4444
steps:
45-
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
45+
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
4646
if: ${{ inputs.install_java }}
4747
with:
4848
java-version: "21"
4949
distribution: "corretto"
5050

5151
- name: Checkout code
52-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
52+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
5353
with:
5454
fetch-depth: 0
5555

@@ -92,7 +92,7 @@ jobs:
9292
asdf_version: ${{ inputs.asdfVersion }}
9393

9494
- name: Cache asdf
95-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
95+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
9696
with:
9797
path: |
9898
~/.asdf
@@ -123,7 +123,7 @@ jobs:
123123
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc
124124
125125
- name: Cache npm dependencies
126-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
126+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
127127
with:
128128
path: ./node_modules
129129
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -172,7 +172,7 @@ jobs:
172172
run: make lint
173173

174174
- name: actionlint
175-
uses: raven-actions/actionlint@3a24062651993d40fed1019b58ac6fbdfbf276cc
175+
uses: raven-actions/actionlint@963d4779ef039e217e5d0e6fd73ce9ab7764e493
176176

177177
- name: Run ShellCheck
178178
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38
@@ -200,7 +200,7 @@ jobs:
200200
run: mvn sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}
201201

202202
- name: SonarCloud Scan
203-
uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602
203+
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
204204
if: ${{ steps.check_java.outputs.uses_java == 'false' && env.SONAR_TOKEN_EXISTS == 'true' }}
205205
env:
206206
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -211,7 +211,7 @@ jobs:
211211
runs-on: ubuntu-22.04
212212
steps:
213213
- name: Checkout code
214-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
214+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
215215
with:
216216
ref: ${{ env.BRANCH_NAME }}
217217
fetch-depth: 0
@@ -270,7 +270,7 @@ jobs:
270270
271271
- name: Cache npm dependencies
272272
if: steps.check_cdk.outputs.cdk_exists == 'true'
273-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
273+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
274274
with:
275275
path: ~/.npm
276276
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -374,7 +374,7 @@ jobs:
374374
done
375375
376376
- name: Download terraform plans
377-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
377+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
378378
with:
379379
pattern: "*_terraform_plan"
380380
path: terraform_plans/
@@ -415,7 +415,7 @@ jobs:
415415

416416
- name: Upload cfn_guard_output
417417
if: failure()
418-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
418+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
419419
with:
420420
name: cfn_guard_output
421421
path: cfn_guard_output

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
36+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
3737

3838
- name: Get asdf version
3939
id: asdf-version

.github/workflows/tag-release.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ on:
5151
change_set_version:
5252
description: "The change set version for deployments"
5353
value: ${{ jobs.tag_release.outputs.change_set_version }}
54+
next_version_tag:
55+
description: "The next version tag that will be created"
56+
value: ${{ jobs.tag_release.outputs.next_version_tag }}
5457
secrets:
5558
NPM_TOKEN:
5659
required: false
@@ -64,7 +67,7 @@ jobs:
6467
runs-on: ubuntu-22.04
6568
steps:
6669
- name: Checkout semantic-release workflow
67-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
70+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
6871
with:
6972
repository: NHSDigital/eps-common-workflows
7073
sparse-checkout-cone-mode: false
@@ -104,7 +107,7 @@ jobs:
104107
105108
- name: Cache asdf artifact
106109
id: asdf_artifact_cache
107-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
110+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
108111
with:
109112
path: asdf.tar.gz
110113
key: ${{ steps.artifact_cache_key.outputs.key }}
@@ -113,7 +116,7 @@ jobs:
113116
- name: Cache asdf with installed npm packages
114117
if: ${{ steps.asdf_artifact_cache.outputs.cache-hit != 'true' }}
115118
id: installed_cache
116-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
119+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
117120
with:
118121
path: ~/.asdf
119122
key: ${{ steps.installed_cache_key.outputs.key }}
@@ -122,7 +125,7 @@ jobs:
122125
- name: Cache asdf
123126
if: ${{ steps.installed_cache.outcome == 'success' && steps.installed_cache.outputs.cache-hit != 'true' }}
124127
id: asdf_cache
125-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
128+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
126129
with:
127130
path: ~/.asdf
128131
key: ${{ steps.asdf_cache_key.outputs.key }}
@@ -150,10 +153,11 @@ jobs:
150153
tar -czf asdf.tar.gz -C "$HOME" .asdf
151154
152155
- name: Upload asdf artifact
153-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
156+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
154157
with:
155158
name: asdf_artifact
156159
path: asdf.tar.gz
160+
overwrite: true
157161

158162
- name: Prepare config artifact
159163
run: |
@@ -162,20 +166,22 @@ jobs:
162166
cp releaseNotesTemplates/commit.hbs config_artifact/releaseNotesTemplates/
163167
164168
- name: Upload config artifact
165-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
169+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
166170
with:
167171
name: config_artifact
168172
path: config_artifact/
173+
overwrite: true
169174

170175
tag_release:
171176
needs: install_semantic_release
172177
runs-on: ubuntu-22.04
173178
outputs:
174179
version_tag: ${{steps.output_version_tag.outputs.VERSION_TAG}}
175180
change_set_version: ${{ steps.output_change_set_version.outputs.CHANGE_SET_VERSION }}
181+
next_version_tag: ${{ steps.output_version_tag.outputs.NEXT_VERSION_TAG }}
176182
steps:
177183
- name: Fetch asdf artifact
178-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
184+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
179185
with:
180186
name: asdf_artifact
181187
- name: Install asdf
@@ -204,7 +210,7 @@ jobs:
204210
# echo "NODE_PATH=$NODE_PATH" >> $GITHUB_ENV
205211
206212
- name: Clone calling repo
207-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
213+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
208214
with:
209215
repository: ${{ github.repository }}
210216
ref: ${{ github.sha }}
@@ -219,13 +225,13 @@ jobs:
219225
BRANCH_NAME: ${{ inputs.branch_name }}
220226

221227
- name: Fetch semantic-release config
222-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
228+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
223229
with:
224230
name: config_artifact
225231

226232
- name: Cache asdf
227233
if: ${{ inputs.publish_package }}
228-
uses: actions/cache@v4
234+
uses: actions/cache@v5
229235
with:
230236
path: |
231237
~/.asdf
@@ -249,13 +255,13 @@ jobs:
249255
250256
- name: Download extra artifact
251257
if: ${{ inputs.extra_artifact_name != '' }}
252-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
258+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
253259
with:
254-
artifact-ids: ${{ inputs.extra_artifact_id }}
255-
github-token: ${{ secrets.GITHUB_TOKEN }}
256-
repository: ${{ inputs.extra_artifact_repository }}
257-
run-id: ${{ inputs.extra_artifact_run_id }}
258-
260+
artifact-ids: ${{ inputs.extra_artifact_id }}
261+
github-token: ${{ secrets.GITHUB_TOKEN }}
262+
repository: ${{ inputs.extra_artifact_repository }}
263+
run-id: ${{ inputs.extra_artifact_run_id }}
264+
259265
- name: Set VERSION_TAG based on dry_run flag
260266
id: output_version_tag
261267
run: |
@@ -304,6 +310,7 @@ jobs:
304310
fi
305311
echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_OUTPUT"
306312
echo "VERSION_TAG=${VERSION_TAG}" >> "$GITHUB_ENV"
313+
echo "NEXT_VERSION_TAG=${NEW_VERSION_TAG}" >> "$GITHUB_OUTPUT"
307314
env:
308315
GITHUB_TOKEN: ${{ github.token }}
309316
BRANCH_NAME: ${{ inputs.branch_name }}
@@ -345,7 +352,7 @@ jobs:
345352
body: |
346353
## Info
347354
[See code diff](${{ github.event.compare }})
348-
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
355+
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - Workflow ID: ${{ github.run_id }}
349356
350357
It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
351358
File renamed without changes.

0 commit comments

Comments
 (0)