Skip to content

Commit cfadb7e

Browse files
committed
CCM-14499: Pinning all GitHub Actions to SHAs
1 parent 22f7fb5 commit cfadb7e

22 files changed

+108
-216
lines changed

.github/actions/acceptance-tests/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ runs:
2424

2525
steps:
2626
- name: Fetch terraform output
27-
uses: actions/download-artifact@v5
28-
with:
27+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 with:
2928
name: terraform-output-${{ inputs.targetComponent }}
3029

3130
- name: Get Node version

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
1615
with:
1716
node-version: 22
1817
registry-url: 'https://npm.pkg.github.com'
@@ -23,16 +22,14 @@ runs:
2322
run: npm ci
2423
shell: bash
2524
- name: Setup Ruby
26-
uses: ruby/setup-ruby@v1.180.1
27-
with:
25+
uses: ruby/setup-ruby@3783f195e29b74ae398d7caca108814bbafde90e # v1.180.1 with:
2826
ruby-version: "3.2" # Not needed with a .ruby-version file
2927
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3028
cache-version: 0 # Increment this number if you need to re-download cached gems
3129
working-directory: "./docs"
3230
- name: Setup Pages
3331
id: pages
34-
uses: actions/configure-pages@v5
35-
- name: Build with Jekyll
32+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 - name: Build with Jekyll
3633
working-directory: ./docs
3734
# Outputs to the './_site' directory by default
3835
shell: bash
@@ -43,7 +40,6 @@ runs:
4340

4441
- name: Upload artifact
4542
# Automatically uploads an artifact from the './_site' directory by default
46-
uses: actions/upload-pages-artifact@v3
47-
with:
43+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with:
4844
path: "docs/_site/"
4945
name: jekyll-docs-${{ inputs.version }}

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
1615
with:
1716
node-version: 22
1817
registry-url: 'https://npm.pkg.github.com'
@@ -31,42 +30,36 @@ runs:
3130
make build VERSION="${{ inputs.version }}"
3231
3332
- name: Upload abstractions artifact
34-
uses: actions/upload-artifact@v6
35-
with:
33+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
3634
path: "src/server/abstractions/bin/Release"
3735
name: libs-abstractions-${{ inputs.version }}
3836
include-hidden-files: true
3937

4038
- name: Upload data artifact
41-
uses: actions/upload-artifact@v6
42-
with:
39+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
4340
path: "src/server/data/bin/Release"
4441
name: libs-data-${{ inputs.version }}
4542
include-hidden-files: true
4643

4744
- name: Upload letter artifact
48-
uses: actions/upload-artifact@v6
49-
with:
45+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
5046
path: "src/server/letter/bin/Release"
5147
name: libs-letter-${{ inputs.version }}
5248
include-hidden-files: true
5349

5450
- name: Upload host artifact
55-
uses: actions/upload-artifact@v6
56-
with:
51+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
5752
path: "src/server/host/bin/Release"
5853
name: libs-host-${{ inputs.version }}
5954
include-hidden-files: true
6055

6156
- name: Set up Docker Buildx
62-
uses: docker/setup-buildx-action@v3
63-
57+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
6458
- run: mkdir -p ${{ runner.temp }}/myimage
6559
shell: bash
6660

6761
- name: Build and export
68-
uses: docker/build-push-action@v6
69-
with:
62+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6 with:
7063
context: src/server
7164
file: src/server/Dockerfile
7265
tags: |
@@ -75,7 +68,6 @@ runs:
7568
outputs: type=docker,dest=${{ runner.temp }}/myimage/myimage.tar
7669

7770
- name: Upload artifact
78-
uses: actions/upload-artifact@v6
79-
with:
71+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
8072
name: libs-host-docker-${{ inputs.version }}
8173
path: ${{ runner.temp }}/myimage

.github/actions/build-oas-spec/action.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ runs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
28-
- uses: actions/setup-node@v4
27+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
2928
with:
3029
node-version: ${{ inputs.nodejs_version }}
3130
registry-url: 'https://npm.pkg.github.com'
3231

3332
- name: "Cache node_modules"
34-
uses: actions/cache@v4
35-
with:
33+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with:
3634
path: |
3735
**/node_modules
3836
key: ${{ runner.os }}-node-${{ inputs.nodejs_version }}-${{ hashFiles('**/package-lock.json') }}
@@ -68,7 +66,6 @@ runs:
6866
fi
6967
7068
- name: Upload API OAS specification artifact
71-
uses: actions/upload-artifact@v6
72-
with:
69+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
7370
path: "build"
7471
name: api-oas-specification-${{ inputs.apimEnv }}${{ inputs.version != '' && format('-{0}', inputs.version) || '' }}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ runs:
3636
steps:
3737
- name: Download OAS Spec artifact from workflow
3838
if: ${{ inputs.isRelease == 'false' }}
39-
uses: actions/download-artifact@v4
40-
with:
39+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with:
4140
name: api-oas-specification-${{ inputs.apimEnv }}${{ inputs.version != '' && format('-{0}', inputs.version) || '' }}
4241
path: ./build
4342

@@ -96,8 +95,7 @@ runs:
9695
echo "APIM_ENV=$APIM_ENV" >> $GITHUB_ENV
9796
9897
- name: Upload OAS Spec
99-
uses: actions/upload-artifact@v6
100-
with:
98+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
10199
name: ${{ env.APIM_ENV }}-build-output
102100
path: ./build
103101

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ runs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
1817
with:
1918
node-version: 22
2019
registry-url: 'https://npm.pkg.github.com'

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
1615
with:
1716
node-version: 22
1817
registry-url: 'https://npm.pkg.github.com'
@@ -56,43 +55,36 @@ runs:
5655
make build VERSION="${{ inputs.version }}"
5756
5857
- name: Upload html artifact
59-
uses: actions/upload-artifact@v6
60-
with:
58+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
6159
path: "sdk/html"
6260
name: sdk-html-${{ inputs.version }}
6361

6462
- name: Upload swagger artifact
65-
uses: actions/upload-artifact@v6
66-
with:
63+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
6764
path: "sdk/swagger"
6865
name: sdk-swagger-${{ inputs.version }}
6966

7067
- name: Upload ts artifact
71-
uses: actions/upload-artifact@v6
72-
with:
68+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
7369
path: "sdk/typescript"
7470
name: sdk-ts-${{ inputs.version }}
7571

7672
- name: Upload python artifact
77-
uses: actions/upload-artifact@v6
78-
with:
73+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
7974
path: "sdk/python"
8075
name: sdk-python-${{ inputs.version }}
8176

8277
- name: Upload csharp artifact
83-
uses: actions/upload-artifact@v6
84-
with:
78+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
8579
path: "sdk/csharp"
8680
name: sdk-csharp-${{ inputs.version }}
8781

8882
- name: Upload artifact
89-
uses: actions/upload-pages-artifact@v3
90-
with:
83+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with:
9184
path: "sdk/html/"
9285
name: sdk-html-docs-${{ inputs.version }}
9386

9487
- name: Upload swagger pages artifact
95-
uses: actions/upload-pages-artifact@v3
96-
with:
88+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 with:
9789
path: "sdk/swagger/"
9890
name: sdk-swagger-docs-${{ inputs.version }}

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/setup-node@v4
1615
with:
1716
node-version: 22
1817
registry-url: 'https://npm.pkg.github.com'
@@ -36,13 +35,11 @@ runs:
3635
make build VERSION="${{ inputs.version }}"
3736
3837
- name: Upload csharp-server artifact
39-
uses: actions/upload-artifact@v6
40-
with:
38+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
4139
path: "server/csharp-server"
4240
name: server-csharp-${{ inputs.version }}
4341

4442
- name: Upload csharp-server docker artifact
45-
uses: actions/upload-artifact@v6
46-
with:
43+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 with:
4744
path: "server/Dockerfile"
4845
name: server-csharp-docker-${{ inputs.version }}

.github/actions/node-install/action.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ runs:
1010
using: 'composite'
1111
steps:
1212
- name: 'Use Node.js'
13-
uses: actions/setup-node@v6
14-
with:
13+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with:
1514
node-version-file: '.tool-versions'
1615
registry-url: 'https://npm.pkg.github.com'
1716
scope: '@nhsdigital'

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
deploy_proxy: ${{ steps.deploy_proxy.outputs.deploy_proxy }}
3434
steps:
3535
- name: "Checkout code"
36-
uses: actions/checkout@v5
37-
- name: "Set CI/CD variables"
36+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 - name: "Set CI/CD variables"
3837
id: variables
3938
run: |
4039
datetime=$(date -u +'%Y-%m-%dT%H:%M:%S%z')

0 commit comments

Comments
 (0)