4848 curl -sSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/.github/alpine/setup-node.sh | sudo bash /dev/stdin
4949
5050 - name : Checkout
51- uses : actions/checkout@v5
51+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5252
5353 - run : git submodule update --init modules/sentry-native
5454
5757 - name : Install zstd on Windows ARM64
5858 uses : ./.github/actions/install-zstd
5959
60- - uses : actions/ cache@v4
61- id : cache
60+ - id : cache
61+ uses : actions/ cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6262 with :
6363 path : src/Sentry/Platforms/Native/sentry-native
6464 key : sentry-native-${{ matrix.rid }}-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -118,10 +118,10 @@ jobs:
118118
119119 - name : Cancel Previous Runs
120120 if : github.ref_name != 'main' && !startsWith(github.ref_name, 'release/')
121- uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # Tag: 0.12.1
121+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
122122
123123 - name : Checkout
124- uses : actions/checkout@v5
124+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
125125 with :
126126 submodules : recursive
127127 fetch-depth : 2 # default is 1 and codecov needs > 1
@@ -140,47 +140,47 @@ jobs:
140140
141141 - name : Download sentry-native (linux-x64)
142142 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-x64') }}
143- uses : actions/cache/restore@v4
143+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
144144 with :
145145 path : src/Sentry/Platforms/Native/sentry-native
146146 key : sentry-native-linux-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
147147 fail-on-cache-miss : true
148148
149149 - name : Download sentry-native (linux-arm64)
150150 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-arm64') }}
151- uses : actions/cache/restore@v4
151+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
152152 with :
153153 path : src/Sentry/Platforms/Native/sentry-native
154154 key : sentry-native-linux-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
155155 fail-on-cache-miss : true
156156
157157 - name : Download sentry-native (linux-musl-x64)
158158 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-musl-x64') }}
159- uses : actions/cache/restore@v4
159+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
160160 with :
161161 path : src/Sentry/Platforms/Native/sentry-native
162162 key : sentry-native-linux-musl-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
163163 fail-on-cache-miss : true
164164
165165 - name : Download sentry-native (linux-musl-arm64)
166166 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'linux-musl-arm64') }}
167- uses : actions/cache/restore@v4
167+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
168168 with :
169169 path : src/Sentry/Platforms/Native/sentry-native
170170 key : sentry-native-linux-musl-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
171171 fail-on-cache-miss : true
172172
173173 - name : Download sentry-native (macos)
174174 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'macos') }}
175- uses : actions/cache/restore@v4
175+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
176176 with :
177177 path : src/Sentry/Platforms/Native/sentry-native
178178 key : sentry-native-macos-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
179179 fail-on-cache-miss : true
180180
181181 - name : Download sentry-native (win-x64)
182182 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'win-x64') }}
183- uses : actions/cache/restore@v4
183+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
184184 with :
185185 path : src/Sentry/Platforms/Native/sentry-native
186186 key : sentry-native-win-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -189,7 +189,7 @@ jobs:
189189
190190 - name : Download sentry-native (win-arm64)
191191 if : ${{ (env.CI_PUBLISHING_BUILD == 'true') || (matrix.rid == 'win-arm64') }}
192- uses : actions/cache/restore@v4
192+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
193193 with :
194194 path : src/Sentry/Platforms/Native/sentry-native
195195 key : sentry-native-win-arm64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -209,7 +209,7 @@ jobs:
209209
210210 - name : Upload build logs
211211 if : ${{ always() }}
212- uses : actions/upload-artifact@v4
212+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
213213 with :
214214 name : ${{ matrix.rid }}-build-logs
215215 path : |
@@ -221,13 +221,13 @@ jobs:
221221 run : dotnet test ${{ matrix.slnf }} -c Release --no-build --nologo -l GitHubActions -l "trx;LogFilePrefix=testresults_${{ runner.os }}" --collect "XPlat Code Coverage"
222222
223223 - name : Upload code coverage
224- uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
224+ uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
225225 with :
226226 token : ${{ secrets.CODECOV_TOKEN }}
227227
228228 - name : Upload build and test outputs
229229 if : failure()
230- uses : actions/upload-artifact@v4
230+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
231231 with :
232232 name : ${{ matrix.rid }}-verify-test-results
233233 path : " **/*.received.*"
@@ -237,7 +237,7 @@ jobs:
237237
238238 - name : Archive NuGet Packages
239239 if : env.CI_PUBLISHING_BUILD == 'true'
240- uses : actions/upload-artifact@v4
240+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
241241 with :
242242 name : ${{ github.sha }}
243243 if-no-files-found : error
@@ -247,7 +247,7 @@ jobs:
247247
248248 - name : Sparse checkout
249249 if : env.CI_PUBLISHING_BUILD == 'true'
250- uses : actions/checkout@v5
250+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
251251 with :
252252 # We only check out what is absolutely necessary to reduce a chance of local files impacting
253253 # integration tests, e.g. Directory.Build.props, nuget.config, ...
@@ -257,7 +257,7 @@ jobs:
257257
258258 - name : Fetch NuGet Packages
259259 if : env.CI_PUBLISHING_BUILD == 'true'
260- uses : actions/download-artifact@v5
260+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
261261 with :
262262 name : ${{ github.sha }}
263263 path : src
@@ -274,12 +274,12 @@ jobs:
274274
275275 steps :
276276 - name : Checkout
277- uses : actions/checkout@v5
277+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
278278 with :
279279 submodules : recursive
280280
281281 - name : Download sentry-native (win-x64)
282- uses : actions/cache/restore@v4
282+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
283283 with :
284284 path : src/Sentry/Platforms/Native/sentry-native
285285 key : sentry-native-win-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -293,7 +293,7 @@ jobs:
293293 uses : ./.github/actions/buildnative
294294
295295 - name : Setup MSBuild
296- uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
296+ uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
297297
298298 - name : Run MSBuild
299299 id : msbuild
@@ -306,7 +306,7 @@ jobs:
306306
307307 - name : Upload logs
308308 if : ${{ always() }}
309- uses : actions/upload-artifact@v4
309+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
310310 with :
311311 name : ${{ runner.os }}-msbuild-logs
312312 path : |
@@ -332,7 +332,7 @@ jobs:
332332
333333 steps :
334334 - name : Checkout
335- uses : actions/checkout@v5
335+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
336336 with :
337337 submodules : recursive
338338
@@ -343,7 +343,7 @@ jobs:
343343 uses : ./.github/actions/buildnative
344344
345345 - name : Fetch NuGet Packages
346- uses : actions/download-artifact@v5
346+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
347347 with :
348348 name : ${{ github.sha }}
349349 path : src
@@ -362,7 +362,7 @@ jobs:
362362
363363 steps :
364364 - name : Checkout
365- uses : actions/checkout@v5
365+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
366366 with :
367367 submodules : recursive
368368 fetch-depth : 2 # default is 1 and codecov needs > 1
@@ -372,7 +372,7 @@ jobs:
372372 run : echo "CI_PUBLISHING_BUILD=true" >> $GITHUB_ENV
373373
374374 - name : Download sentry-native (macos)
375- uses : actions/cache/restore@v4
375+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
376376 with :
377377 path : src/Sentry/Platforms/Native/sentry-native
378378 key : sentry-native-macos-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -401,7 +401,7 @@ jobs:
401401 if : ${{ !startsWith(github.ref_name, 'release/') }}
402402
403403 steps :
404- - uses : actions/checkout@v5
404+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
405405 with :
406406 submodules : recursive
407407
0 commit comments