Skip to content

Commit 9780615

Browse files
authored
fix: update action versions in action.yml for consistency and stability (#408)
1 parent fc72fe1 commit 9780615

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

action.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ inputs:
3131
runs:
3232
using: composite
3333
steps:
34-
- uses: actions/setup-node@v5
34+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3535
with:
3636
node-version: 20.12.2
3737

38-
- uses: actions/setup-python@v6
38+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3939
with:
4040
python-version: 3.x
4141

@@ -46,7 +46,7 @@ runs:
4646
cd gitstream && mkdir repo
4747
4848
- name: Checkout base branch
49-
uses: actions/checkout@v5
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050
with:
5151
repository: ${{ inputs.full_repository }}
5252
ref: ${{ inputs.base_ref }}
@@ -55,7 +55,7 @@ runs:
5555

5656
- name: Escape single quotes
5757
id: safe-strings
58-
uses: actions/github-script@v8
58+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
5959
env:
6060
BASE_REF_ARG: ${{ inputs.base_ref }}
6161
HEAD_REF_ARG: ${{ inputs.head_ref }}
@@ -84,7 +84,7 @@ runs:
8484
}
8585
8686
- name: Get condition variables
87-
uses: actions/github-script@v8
87+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
8888
env:
8989
IS_NON_COMMIT_ARG: ${{ fromJSON(fromJSON(inputs.client_payload)).isNonCommitEvent }}
9090
ENABLE_CACHE_ARG: ${{ env.ENABLE_CACHE }}
@@ -96,7 +96,7 @@ runs:
9696
9797
- name: Download cache artifact for cm repo
9898
id: download-cache-for-cm-repo
99-
uses: actions/download-artifact@v5
99+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
100100
if: ${{ env.SKIP_GIT_CLONE == 'true' && fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == true }}
101101
continue-on-error: true
102102
with:
@@ -108,7 +108,7 @@ runs:
108108

109109
- name: Download cache artifact when cmRepo is false
110110
id: download-cache
111-
uses: actions/download-artifact@v5
111+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
112112
if: ${{ env.SKIP_GIT_CLONE == 'true' && fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == false}}
113113
continue-on-error: true
114114
with:
@@ -119,7 +119,7 @@ runs:
119119
path: code/output
120120

121121
- name: Check if download cache artifact failed
122-
uses: actions/github-script@v8
122+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
123123
env:
124124
ARTIFACT_OUTCOME_ARG: ${{ steps.download-cache.outcome }}
125125
ARTIFACT_OUTCOME_CM_REPO_ARG: ${{ steps.download-cache-for-cm-repo.outcome }}
@@ -146,15 +146,15 @@ runs:
146146
run: cd gitstream && mkdir cm
147147

148148
- name: Checkout cm repo
149-
uses: actions/checkout@v5
149+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
150150
if: ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == true && env.SHOULD_CHECKOUT == 'true'}}
151151
with:
152152
repository: '${{ fromJSON(fromJSON(inputs.client_payload)).owner }}/${{ fromJSON(fromJSON(inputs.client_payload)).cmRepo }}'
153153
ref: ${{ fromJSON(fromJSON(inputs.client_payload)).cmRepoRef }}
154154
path: gitstream/cm/
155155

156156
- name: Checkout cm org
157-
uses: actions/checkout@v5
157+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
158158
if: ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmOrg == true && env.SHOULD_CHECKOUT == 'true'}}
159159
with:
160160
repository: 'cm/cm'
@@ -187,7 +187,7 @@ runs:
187187

188188
- name: Upload artifacts
189189
if: ${{ env.ENABLE_DEBUG_ARTIFACTS == 'true' || env.ENABLE_CACHE == 'true' }}
190-
uses: actions/upload-artifact@v4
190+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
191191
with:
192192
retention-days: 7
193193
name: output

0 commit comments

Comments
 (0)