Skip to content

Commit aa80e4e

Browse files
authored
Merge pull request #2243 from stackhpc/pin-actions
Pin GitHub Actions to commits instead of tags
2 parents 214f521 + 3e74512 commit aa80e4e

19 files changed

+78
-74
lines changed

.github/workflows/amphora-image-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
permissions: {}
4040
steps:
4141

42-
- name: Install Package
43-
uses: ConorMacBride/install-package@main
44-
with:
45-
apt: git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
42+
- name: Install Package dependencies
43+
run: |
44+
sudo apt update &&
45+
sudo apt install -y git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
4646
4747
- name: Start the SSH service
4848
run: |
4949
sudo /etc/init.d/ssh start
5050
5151
- name: Checkout
52-
uses: actions/checkout@v6
52+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5353
with:
5454
path: src/kayobe-config
5555

@@ -80,7 +80,7 @@ jobs:
8080
pip install -r ../src/kayobe-config/requirements.txt
8181
8282
- name: Install terraform
83-
uses: hashicorp/setup-terraform@v3
83+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
8484

8585
- name: Initialise terraform
8686
run: terraform init
@@ -255,7 +255,7 @@ jobs:
255255
if: steps.build_amphora.outcome == 'failure'
256256

257257
- name: Upload logs & image artifact
258-
uses: actions/upload-artifact@v6
258+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
259259
with:
260260
name: amphora-image-build-log
261261
path: ./artifact

.github/workflows/amphora-image-promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
1616
runs-on: ubuntu-22.04
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
path: src/kayobe-config
2121

.github/workflows/ipa-image-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ jobs:
4747
- runner-selection
4848
permissions: {}
4949
steps:
50-
- name: Install Package
51-
uses: ConorMacBride/install-package@main
52-
with:
53-
apt: git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
50+
- name: Install Package dependencies
51+
run: |
52+
sudo apt update &&
53+
sudo apt install -y git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
5454
5555
- name: Start the SSH service
5656
run: |
5757
sudo /etc/init.d/ssh start
5858
5959
- name: Checkout
60-
uses: actions/checkout@v6
60+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6161
with:
6262
path: src/kayobe-config
6363

@@ -86,7 +86,7 @@ jobs:
8686
pip install -r ../src/kayobe-config/requirements.txt
8787
8888
- name: Install terraform
89-
uses: hashicorp/setup-terraform@v3
89+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
9090

9191
- name: Initialise terraform
9292
run: terraform init
@@ -329,7 +329,7 @@ jobs:
329329
if: always()
330330

331331
- name: Upload logs artifact
332-
uses: actions/upload-artifact@v6
332+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
333333
with:
334334
name: Build logs
335335
path: ./logs

.github/workflows/ipa-image-promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
exit 1
3131
fi
3232
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
path: src/kayobe-config
3636

.github/workflows/overcloud-host-image-build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
host_image_tag: ${{ steps.host_image_tag.outputs.host_image_tag }}
5959
steps:
6060
- name: Checkout
61-
uses: actions/checkout@v6
61+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6262
with:
6363
path: src/kayobe-config
6464

@@ -97,14 +97,14 @@ jobs:
9797
echo "${{ needs.create-tag.outputs.host_image_tag }}"
9898
9999
- name: Checkout
100-
uses: actions/checkout@v6
100+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101101
with:
102102
path: src/kayobe-config
103103

104-
- name: Install Package
105-
uses: ConorMacBride/install-package@main
106-
with:
107-
apt: git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq gh
104+
- name: Install Package dependencies
105+
run: |
106+
sudo apt update &&
107+
sudo apt install -y git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq gh
108108
109109
- name: Start the SSH service
110110
run: |
@@ -120,7 +120,7 @@ jobs:
120120
pip install -r ../src/kayobe-config/requirements.txt
121121
122122
- name: Install terraform
123-
uses: hashicorp/setup-terraform@v3
123+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
124124

125125
- name: Initialise terraform
126126
run: terraform init
@@ -467,7 +467,7 @@ jobs:
467467
steps.build_ubuntu_noble.outcome == 'failure'
468468

469469
- name: Upload logs artifact
470-
uses: actions/upload-artifact@v6
470+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
471471
with:
472472
name: Build logs
473473
path: ./logs
@@ -502,8 +502,9 @@ jobs:
502502
if: inputs.create_skc_pr
503503

504504
- name: Send message to Slack via Workflow Builder
505-
uses: slackapi/slack-github-action@v1.26.0
505+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
506506
with:
507+
webhook-type: "incoming-webhook"
507508
payload: |
508509
{
509510
"channel-id": "${{ env.SLACK_CHANNEL_ID }}",

.github/workflows/overcloud-host-image-promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
exit 1
3131
fi
3232
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
path: src/kayobe-config
3636

.github/workflows/overcloud-host-image-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
sudo apt update
6565
sudo apt install -y build-essential git unzip nodejs python3-wheel python3-pip python3-venv
6666
67-
- uses: actions/checkout@v6
67+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868
with:
6969
path: src/kayobe-config
7070

.github/workflows/package-build-ofed.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ jobs:
3333
run: |
3434
echo "ofed_tag=$(date +%Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
3535
36-
- name: Install Package
37-
uses: ConorMacBride/install-package@main
38-
with:
39-
apt: git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
36+
- name: Install Package dependencies
37+
run: |
38+
sudo apt update &&
39+
sudo apt install -y git unzip nodejs python3-pip python3-venv openssh-server openssh-client jq
4040
4141
- name: Start the SSH service
4242
run: |
4343
sudo /etc/init.d/ssh start
4444
4545
- name: Checkout
46-
uses: actions/checkout@v6
46+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747
with:
4848
path: src/kayobe-config
4949

@@ -57,7 +57,7 @@ jobs:
5757
pip install -r ../src/kayobe-config/requirements.txt
5858
5959
- name: Install terraform
60-
uses: hashicorp/setup-terraform@v3
60+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
6161

6262
- name: Initialise terraform
6363
run: terraform init

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ jobs:
9696
# NOTE(upgrade): Reference the PREVIOUS release branch here.
9797
PREVIOUS_BRANCH: stackhpc/2024.1
9898
steps:
99-
- name: Install Package
100-
uses: ConorMacBride/install-package@main
101-
with:
102-
apt: git unzip nodejs openssh-client
99+
- name: Install Package dependencies
100+
run: |
101+
sudo apt update &&
102+
sudo apt install -y git unzip nodejs openssh-client
103103
104104
# If testing upgrade, checkout previous release, otherwise checkout current branch
105105
- name: Checkout ${{ inputs.upgrade && 'previous release' || 'current' }} config
106-
uses: actions/checkout@v6
106+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
107107
with:
108108
repository: ${{ inputs.repository }}
109109
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.github_ref }}
@@ -139,7 +139,7 @@ jobs:
139139
fi
140140
141141
- name: Install terraform
142-
uses: hashicorp/setup-terraform@v3
142+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
143143

144144
- name: Initialise terraform
145145
run: terraform init
@@ -396,7 +396,7 @@ jobs:
396396
if: inputs.upgrade
397397

398398
- name: Checkout current release config
399-
uses: actions/checkout@v6
399+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
400400
with:
401401
repository: ${{ inputs.repository }}
402402
ref: ${{ inputs.github_ref }}
@@ -490,7 +490,7 @@ jobs:
490490
if: ${{ !cancelled() && steps.tf_apply.outcome == 'success' }}
491491

492492
- name: Upload test result artifacts
493-
uses: actions/upload-artifact@v6
493+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
494494
with:
495495
name: test-results-${{ inputs.os_distribution }}-${{ inputs.os_release }}-${{ inputs.neutron_plugin }}${{ inputs.upgrade && '-upgrade' || '' }}
496496
path: |

.github/workflows/stackhpc-build-kayobe-image.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@ jobs:
5151
steps:
5252
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5353
- name: Checkout kayobe config
54-
uses: actions/checkout@v6
54+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5555
with:
5656
submodules: true
5757

5858
- name: Log in to the Container registry
59-
uses: docker/login-action@v3
59+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
6060
with:
6161
registry: ${{ env.REGISTRY }}
6262
username: ${{ github.actor }}
6363
password: ${{ secrets.GITHUB_TOKEN }}
6464

6565
- name: Extract metadata (tags, labels) for Docker
6666
id: meta
67-
uses: docker/metadata-action@v5
67+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
6868
with:
6969
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7070

7171
- name: Set up Docker Buildx
72-
uses: docker/setup-buildx-action@v3
72+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
7373
with:
7474
driver-opts: |
7575
image=moby/buildkit:master
@@ -85,7 +85,7 @@ jobs:
8585
# Setting KAYOBE_USER_UID and KAYOBE_USER_GID to 1001 to match docker's defaults
8686
# so that docker can run as a privileged user within the Kayobe image.
8787
- name: Build and push Docker image
88-
uses: docker/build-push-action@v6
88+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
8989
with:
9090
file: ./.automation/docker/kayobe/Dockerfile
9191
context: .
@@ -101,8 +101,9 @@ jobs:
101101
labels: ${{ steps.meta.outputs.labels }}
102102

103103
- name: Send message to Slack via Workflow Builder
104-
uses: slackapi/slack-github-action@v1.26.0
104+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
105105
with:
106+
webhook-type: "incoming-webhook"
106107
payload: |
107108
{
108109
"channel-id": "${{ env.SLACK_CHANNEL_ID }}",

0 commit comments

Comments
 (0)