Skip to content

Commit 7156c00

Browse files
elelayshAlex-Welsh
andauthored
Use approved github action pins (#19)
* Use approved github action pins * Fix minor linting errors * Fix slack action for v3 Co-authored-by: Alex Welsh <112560678+Alex-Welsh@users.noreply.github.com>
1 parent c4bc054 commit 7156c00

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/multinode.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the cloud.
55

66
name: Multinode
7-
on:
7+
"on":
88
workflow_call:
99
inputs:
1010
multinode_name:
@@ -97,7 +97,7 @@ jobs:
9797
permissions: {}
9898
timeout-minutes: 2880
9999
env:
100-
ANSIBLE_FORCE_COLOR: True
100+
ANSIBLE_FORCE_COLOR: "True"
101101
KAYOBE_ENVIRONMENT: ci-multinode
102102
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD_CI_MULTINODE }}
103103
steps:
@@ -132,7 +132,7 @@ jobs:
132132
echo "ssh_keys=${ssh_keys}" >> "$GITHUB_OUTPUT"
133133
134134
- name: Install Package
135-
uses: ConorMacBride/install-package@main
135+
uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 # v1.1.0
136136
with:
137137
apt: git unzip nodejs python3-pip python3-venv rsync openssh-client
138138

@@ -142,13 +142,15 @@ jobs:
142142
with:
143143
repository: stackhpc/stackhpc-kayobe-config
144144
ref: ${{ (inputs.upgrade != 'none') && inputs.stackhpc_kayobe_config_previous_version || inputs.stackhpc_kayobe_config_version }}
145+
persist-credentials: false
145146

146147
- name: Checkout ${{ (inputs.upgrade == 'major') && 'previous release' || 'current' }} terraform-kayobe-multinode
147148
uses: actions/checkout@v4
148149
with:
149150
repository: stackhpc/terraform-kayobe-multinode
150151
ref: ${{ (inputs.upgrade == 'major') && inputs.terraform_kayobe_multinode_previous_version || inputs.terraform_kayobe_multinode_version }}
151152
path: terraform-kayobe-multinode
153+
persist-credentials: false
152154

153155
- name: Make sure dockerd is running and test Docker
154156
run: |
@@ -170,7 +172,7 @@ jobs:
170172
fi
171173
172174
- name: Install terraform
173-
uses: hashicorp/setup-terraform@v2
175+
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4.0.0
174176
with:
175177
terraform_wrapper: false
176178

@@ -372,6 +374,7 @@ jobs:
372374
repository: stackhpc/terraform-kayobe-multinode
373375
ref: ${{ inputs.terraform_kayobe_multinode_version }}
374376
path: terraform-kayobe-multinode
377+
persist-credentials: false
375378
if: inputs.upgrade == 'major'
376379

377380
- name: Pop stashed terraform-kayobe-multinode changes
@@ -454,21 +457,19 @@ jobs:
454457
${{ github.workspace }}/logs/
455458
if: ${{ always() && steps.config_ach.outcome == 'success' }}
456459

457-
- name: Send message to Slack via Workflow Builder
458-
uses: slackapi/slack-github-action@v1.26.0
460+
- name: Send message to Slack via Incoming Webhook
461+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
459462
with:
463+
errors: true
460464
payload: |
461-
{
462-
"channel-id": "${{ env.SLACK_CHANNEL_ID }}",
463-
"inputs": "${{ env.INPUTS }}",
464-
"message": "${{ env.MESSAGE }}",
465-
"results-url": "${{ env.RESULTS_URL }}",
466-
"workflow-url": "${{ env.WORKFLOW_URL }}"
467-
}
465+
channel: C03B28HRP53 # #release-train-alerts
466+
inputs: "${{ env.INPUTS }}"
467+
message: "${{ env.MESSAGE }}"
468+
results-url: "${{ env.RESULTS_URL }}"
469+
workflow-url: "${{ env.WORKFLOW_URL }}"
470+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
471+
webhook-type: incoming-webhook
468472
env:
469-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
470-
# #release-train-alerts
471-
SLACK_CHANNEL_ID: C03B28HRP53
472473
INPUTS: >-
473474
name: ${{ inputs.multinode_name }}\n
474475
controllers: ${{ inputs.multinode_controller_count }}\n

0 commit comments

Comments
 (0)