26
26
matrix : ${{ steps.set-matrix.outputs.plugins }}
27
27
steps :
28
28
- name : Checkout
29
- uses : actions/checkout@v5
29
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
30
30
31
31
- name : Set matrix
32
32
id : set-matrix
@@ -58,10 +58,10 @@ jobs:
58
58
plugin : ${{ fromJSON(needs.pre-run.outputs.matrix) }}
59
59
steps :
60
60
- name : Checkout
61
- uses : actions/checkout@v5
61
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
62
62
63
63
- name : Setup Node.js (.nvmrc)
64
- uses : actions/setup-node@v5
64
+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
65
65
with :
66
66
node-version-file : ' .nvmrc'
67
67
cache : npm
@@ -120,14 +120,14 @@ jobs:
120
120
121
121
- name : Upload artifact
122
122
if : steps.check-deployment.outputs.deploy == 'true'
123
- uses : actions/upload-artifact@v4
123
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
124
124
with :
125
125
name : ${{ matrix.plugin }}
126
126
path : ./build/dist
127
127
128
128
- name : Start deployment
129
129
if : steps.check-deployment.outputs.deploy == 'true'
130
- uses : bobheadxi/deployments@v1
130
+ uses : bobheadxi/deployments@18dcfe705d6892121d665b21ef9ff448791807f3 # v1
131
131
id : wporg-deployment
132
132
with :
133
133
step : start
@@ -136,7 +136,7 @@ jobs:
136
136
137
137
- name : Deploy Plugin - ${{ matrix.plugin }}
138
138
if : steps.check-deployment.outputs.deploy == 'true'
139
- uses : 10up/action-wordpress-plugin-deploy@stable
139
+ uses : 10up/action-wordpress-plugin-deploy@2480306f6f693672726d08b5917ea114cb2825f7 # stable
140
140
with :
141
141
dry-run : ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || false }}
142
142
env :
@@ -149,7 +149,7 @@ jobs:
149
149
150
150
- name : Finish deployment
151
151
if : ${{ steps.wporg-deployment.outputs.deployment_id && always() }}
152
- uses : bobheadxi/deployments@v1
152
+ uses : bobheadxi/deployments@18dcfe705d6892121d665b21ef9ff448791807f3 # v1
153
153
with :
154
154
step : finish
155
155
token : ${{ secrets.GITHUB_TOKEN }}
@@ -172,7 +172,7 @@ jobs:
172
172
steps :
173
173
- name : Check artifact existence
174
174
id : artifact-existence
175
- uses : actions/github-script@v8
175
+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
176
176
with :
177
177
script : |
178
178
const getArtifact = await github.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}', {
@@ -191,14 +191,14 @@ jobs:
191
191
192
192
- name : Download artifact
193
193
if : steps.artifact-existence.outputs.exists == 'true'
194
- uses : actions/download-artifact@v5
194
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
195
195
with :
196
196
name : ${{ matrix.plugin }}
197
197
path : ./build/dist
198
198
199
199
- name : Upload release assets
200
200
if : steps.artifact-existence.outputs.exists == 'true'
201
- uses : softprops/action-gh-release@v2
201
+ uses : softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2
202
202
with :
203
203
files : |
204
204
./build/dist/${{ matrix.plugin }}.zip
0 commit comments