55 branches :
66 - main
77 pull_request :
8- pull_request_target :
8+
9+ permissions :
10+ contents : read
11+ pull-requests : read
12+
13+ env :
14+ PNPM_VERSION : 9.15.9+sha256.cf86a7ad764406395d4286a6d09d730711720acc6d93e9dce9ac7ac4dc4a28a7
915
1016jobs :
1117 dependency-check :
@@ -40,18 +46,15 @@ jobs:
4046
4147 steps :
4248 - name : ⬇️ Checkout Repository
43- uses : actions/checkout@v3
44-
45- - name : ⬇️ Checkout PR Repository
46- uses : actions/checkout@v3
47- with :
48- ref : ${{ github.event.pull_request.head.sha }}
49+ uses : actions/checkout@v4
4950
5051 - name : 📦 Setup pnpm
5152 uses : pnpm/action-setup@v4
53+ with :
54+ version : ${{ env.PNPM_VERSION }}
5255
5356 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
54- uses : actions/setup-node@v3
57+ uses : actions/setup-node@v4
5558 with :
5659 node-version : ${{ matrix.node-version }}
5760 cache : pnpm
@@ -78,20 +81,15 @@ jobs:
7881
7982 steps :
8083 - name : ⬇️ Checkout Repository
81- if : ${{ github.event_name != 'pull_request_target' }}
82- uses : actions/checkout@v3
83-
84- - name : ⬇️ Checkout PR Repository
85- if : ${{ github.event_name == 'pull_request_target' }}
86- uses : actions/checkout@v3
87- with :
88- ref : ${{ github.event.pull_request.head.sha }}
84+ uses : actions/checkout@v4
8985
9086 - name : 📦 Setup pnpm
9187 uses : pnpm/action-setup@v4
88+ with :
89+ version : ${{ env.PNPM_VERSION }}
9290
9391 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
94- uses : actions/setup-node@v3
92+ uses : actions/setup-node@v4
9593 with :
9694 node-version : ${{ matrix.node-version }}
9795 cache : pnpm
@@ -141,20 +139,15 @@ jobs:
141139
142140 steps :
143141 - name : ⬇️ Checkout Repository
144- if : ${{ github.event_name != 'pull_request_target' }}
145- uses : actions/checkout@v3
146-
147- - name : ⬇️ Checkout PR Repository
148- if : ${{ github.event_name == 'pull_request_target' }}
149- uses : actions/checkout@v3
150- with :
151- ref : ${{ github.event.pull_request.head.sha }}
142+ uses : actions/checkout@v4
152143
153144 - name : 📦 Setup pnpm
154145 uses : pnpm/action-setup@v4
146+ with :
147+ version : ${{ env.PNPM_VERSION }}
155148
156149 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
157- uses : actions/setup-node@v3
150+ uses : actions/setup-node@v4
158151 with :
159152 node-version : ${{ matrix.node-version }}
160153 cache : pnpm
@@ -204,20 +197,15 @@ jobs:
204197
205198 steps :
206199 - name : ⬇️ Checkout Repository
207- if : ${{ github.event_name != 'pull_request_target' }}
208- uses : actions/checkout@v3
209-
210- - name : ⬇️ Checkout PR Repository
211- if : ${{ github.event_name == 'pull_request_target' }}
212- uses : actions/checkout@v3
213- with :
214- ref : ${{ github.event.pull_request.head.sha }}
200+ uses : actions/checkout@v4
215201
216202 - name : 📦 Setup pnpm
217203 uses : pnpm/action-setup@v4
204+ with :
205+ version : ${{ env.PNPM_VERSION }}
218206
219207 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
220- uses : actions/setup-node@v3
208+ uses : actions/setup-node@v4
221209 with :
222210 node-version : ${{ matrix.node-version }}
223211 cache : pnpm
@@ -267,20 +255,15 @@ jobs:
267255
268256 steps :
269257 - name : ⬇️ Checkout Repository
270- if : ${{ github.event_name != 'pull_request_target' }}
271- uses : actions/checkout@v3
272-
273- - name : ⬇️ Checkout PR Repository
274- if : ${{ github.event_name == 'pull_request_target' }}
275- uses : actions/checkout@v3
276- with :
277- ref : ${{ github.event.pull_request.head.sha }}
258+ uses : actions/checkout@v4
278259
279260 - name : 📦 Setup pnpm
280261 uses : pnpm/action-setup@v4
262+ with :
263+ version : ${{ env.PNPM_VERSION }}
281264
282265 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
283- uses : actions/setup-node@v3
266+ uses : actions/setup-node@v4
284267 with :
285268 node-version : ${{ matrix.node-version }}
286269 cache : pnpm
@@ -330,20 +313,15 @@ jobs:
330313
331314 steps :
332315 - name : ⬇️ Checkout Repository
333- if : ${{ github.event_name != 'pull_request_target' }}
334- uses : actions/checkout@v3
335-
336- - name : ⬇️ Checkout PR Repository
337- if : ${{ github.event_name == 'pull_request_target' }}
338- uses : actions/checkout@v3
339- with :
340- ref : ${{ github.event.pull_request.head.sha }}
316+ uses : actions/checkout@v4
341317
342318 - name : 📦 Setup pnpm
343319 uses : pnpm/action-setup@v4
320+ with :
321+ version : ${{ env.PNPM_VERSION }}
344322
345323 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
346- uses : actions/setup-node@v3
324+ uses : actions/setup-node@v4
347325 with :
348326 node-version : ${{ matrix.node-version }}
349327 cache : pnpm
@@ -393,20 +371,15 @@ jobs:
393371
394372 steps :
395373 - name : ⬇️ Checkout Repository
396- if : ${{ github.event_name != 'pull_request_target' }}
397- uses : actions/checkout@v3
398-
399- - name : ⬇️ Checkout PR Repository
400- if : ${{ github.event_name == 'pull_request_target' }}
401- uses : actions/checkout@v3
402- with :
403- ref : ${{ github.event.pull_request.head.sha }}
374+ uses : actions/checkout@v4
404375
405376 - name : 📦 Setup pnpm
406377 uses : pnpm/action-setup@v4
378+ with :
379+ version : ${{ env.PNPM_VERSION }}
407380
408381 - name : 🟢 Setup Node.js ${{ matrix.node-version }}
409- uses : actions/setup-node@v3
382+ uses : actions/setup-node@v4
410383 with :
411384 node-version : ${{ matrix.node-version }}
412385 cache : pnpm
0 commit comments