Skip to content

Commit 988e09d

Browse files
jack-nhsJuttonSNogaNHS
authored
[PRMP-1465] Update Github Actions (excluding anothrNick/github-tag-action) (#242)
* Updates actions in Cleanup Appconfig * Updates workflow actions in git rename tag * Updates github actions in TF deploy feature to sandbox with dispatch * Upgrades actions in terraform deploy feature to sandbox workflow * Updates terraform deploy virus scanner workflow actions * Updates terraform destroy dev environments workflow actions * Updates terraform destroy dev environments manual workflow actions * Updates terraform destroy test environments workflow actions * Updates terraform dev to main ci workflow actions * Adds hide AWS account id to configure AWS credentials actions --------- Co-authored-by: Jack Sutton <[email protected]> Co-authored-by: NogaNHS <[email protected]>
1 parent 0c18baa commit 988e09d

15 files changed

+48
-37
lines changed

.github/workflows/cleanup-appconfig-and-lambda-layer-versions.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848

4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
5252
with:
5353
repository: 'nhsconnect/national-document-repository-infrastructure'
5454
ref: ${{ inputs.build_branch }}
5555
fetch-depth: '0'
5656

5757
- name: Set up Python ${{ inputs.python_version }}
58-
uses: actions/setup-python@v4
58+
uses: actions/setup-python@v5
5959
with:
6060
python-version: ${{ inputs.python_version }}
6161

@@ -66,11 +66,12 @@ jobs:
6666
./venv/bin/pip3 install boto3==1.33.11
6767
6868
- name: Configure AWS Credentials
69-
uses: aws-actions/configure-aws-credentials@v2
69+
uses: aws-actions/configure-aws-credentials@v4
7070
with:
7171
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
7272
role-skip-session-tagging: true
7373
aws-region: ${{ vars.AWS_REGION }}
74+
mask-aws-account-id: true
7475

7576
- name: Run Version Cleanup Script
7677
run: |

.github/workflows/cleanup-cloudfront-edge-associations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
fetch-depth: '0'
5454

5555
- name: Set up Python ${{ inputs.python_version }}
56-
uses: actions/setup-python@v4
56+
uses: actions/setup-python@v5
5757
with:
5858
python-version: ${{ inputs.python_version }}
5959

.github/workflows/git-rename-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626

2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
ref: ${{ github.event.inputs.old_tag }}
3131
fetch-depth: 0

.github/workflows/terraform-daily-healthcheck-deploy-and-destroy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
working-directory: ./app
111111

112112
- name: Cypress build
113-
uses: cypress-io/github-action@v5
113+
uses: cypress-io/github-action@v6
114114
with:
115115
install: false
116116
runTests: false

.github/workflows/terraform-deploy-feature-to-sandbox-with-dispatch.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,24 @@ jobs:
4141
steps:
4242
# Checkout the repository to the GitHub Actions runner
4343
- name: Checkout
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
with:
4646
ref: ${{ github.event.inputs.build_branch}}
4747

4848
- name: Configure AWS Credentials
49-
uses: aws-actions/configure-aws-credentials@v2
49+
uses: aws-actions/configure-aws-credentials@v4
5050
with:
5151
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
5252
role-skip-session-tagging: true
5353
aws-region: ${{ vars.AWS_REGION }}
54+
mask-aws-account-id: true
5455

5556
- name: View AWS Role
5657
run: aws sts get-caller-identity
5758

5859
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
5960
- name: Setup Terraform
60-
uses: hashicorp/setup-terraform@v2
61+
uses: hashicorp/setup-terraform@v3
6162
with:
6263
terraform_version: 1.5.4
6364
terraform_wrapper: false

.github/workflows/terraform-deploy-feature-to-sandbox.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,24 @@ jobs:
3131
steps:
3232
# Checkout the repository to the GitHub Actions runner
3333
- name: Checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
ref: ${{ github.event.inputs.buildBranch}}
3737

3838
- name: Configure AWS Credentials
39-
uses: aws-actions/configure-aws-credentials@v2
39+
uses: aws-actions/configure-aws-credentials@v4
4040
with:
4141
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
4242
role-skip-session-tagging: true
4343
aws-region: ${{ vars.AWS_REGION }}
44+
mask-aws-account-id: true
4445

4546
- name: View AWS Role
4647
run: aws sts get-caller-identity
4748

4849
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
4950
- name: Setup Terraform
50-
uses: hashicorp/setup-terraform@v2
51+
uses: hashicorp/setup-terraform@v3
5152
with:
5253
terraform_version: 1.5.4
5354
terraform_wrapper: false

.github/workflows/terraform-deploy-to-perf-manual.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,25 @@ jobs:
2222
steps:
2323
# Checkout the repository to the GitHub Actions runner
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
ref: ${{ github.event.inputs.buildBranch}}
2828
fetch-depth: '0'
2929

3030
- name: Configure AWS Credentials
31-
uses: aws-actions/configure-aws-credentials@v2
31+
uses: aws-actions/configure-aws-credentials@v4
3232
with:
3333
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
3434
role-skip-session-tagging: true
3535
aws-region: ${{ vars.AWS_REGION }}
36+
mask-aws-account-id: true
3637

3738
- name: View AWS Role
3839
run: aws sts get-caller-identity
3940

4041
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
4142
- name: Setup Terraform
42-
uses: hashicorp/setup-terraform@v2
43+
uses: hashicorp/setup-terraform@v3
4344
with:
4445
terraform_version: 1.5.4
4546
terraform_wrapper: false

.github/workflows/terraform-deploy-to-pre-prod-manual.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222

23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
ref: main
2626
fetch-depth: '0'
@@ -45,24 +45,25 @@ jobs:
4545
steps:
4646
# Checkout the repository to the GitHub Actions runner
4747
- name: Checkout
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
ref: ${{needs.tag_and_release.outputs.tag}}
5151
fetch-depth: '0'
5252

5353
- name: Configure AWS Credentials
54-
uses: aws-actions/configure-aws-credentials@v2
54+
uses: aws-actions/configure-aws-credentials@v4
5555
with:
5656
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
5757
role-skip-session-tagging: true
5858
aws-region: ${{ vars.AWS_REGION }}
59+
mask-aws-account-id: true
5960

6061
- name: View AWS Role
6162
run: aws sts get-caller-identity
6263

6364
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
6465
- name: Setup Terraform
65-
uses: hashicorp/setup-terraform@v2
66+
uses: hashicorp/setup-terraform@v3
6667
with:
6768
terraform_version: 1.5.4
6869
terraform_wrapper: false

.github/workflows/terraform-deploy-to-prod-manual.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,25 @@ jobs:
2222
steps:
2323
# Checkout the repository to the GitHub Actions runner
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
ref: ${{ github.event.inputs.tagVersion}}
2828
fetch-depth: '0'
2929

3030
- name: Configure AWS Credentials
31-
uses: aws-actions/configure-aws-credentials@v2
31+
uses: aws-actions/configure-aws-credentials@v4
3232
with:
3333
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
3434
role-skip-session-tagging: true
3535
aws-region: ${{ vars.AWS_REGION }}
36+
mask-aws-account-id: true
3637

3738
- name: View AWS Role
3839
run: aws sts get-caller-identity
3940

4041
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
4142
- name: Setup Terraform
42-
uses: hashicorp/setup-terraform@v2
43+
uses: hashicorp/setup-terraform@v3
4344
with:
4445
terraform_version: 1.5.4
4546
terraform_wrapper: false

.github/workflows/terraform-deploy-to-test-manual.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@ jobs:
2222
steps:
2323
# Checkout the repository to the GitHub Actions runner
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
ref: ${{ github.event.inputs.build_branch}}
2828

2929
- name: Configure AWS Credentials
30-
uses: aws-actions/configure-aws-credentials@v2
30+
uses: aws-actions/configure-aws-credentials@v4
3131
with:
3232
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
3333
role-skip-session-tagging: true
3434
aws-region: ${{ vars.AWS_REGION }}
35+
mask-aws-account-id: true
3536

3637
- name: View AWS Role
3738
run: aws sts get-caller-identity
3839

3940
# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
4041
- name: Setup Terraform
41-
uses: hashicorp/setup-terraform@v2
42+
uses: hashicorp/setup-terraform@v3
4243
with:
4344
terraform_version: 1.5.4
4445
terraform_wrapper: false

0 commit comments

Comments
 (0)