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,18 +247,19 @@ 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 (nuget.config etc.)... But we need the root Directory.Build.props calculate
254254 # the package version
255255 sparse-checkout : |
256256 integration-test
257+ scripts
257258 .github
258259
259260 - name : Fetch NuGet Packages
260261 if : env.CI_PUBLISHING_BUILD == 'true'
261- uses : actions/download-artifact@v5
262+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
262263 with :
263264 name : ${{ github.sha }}
264265 path : src
@@ -287,12 +288,12 @@ jobs:
287288
288289 steps :
289290 - name : Checkout
290- uses : actions/checkout@v5
291+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
291292 with :
292293 submodules : recursive
293294
294295 - name : Download sentry-native (win-x64)
295- uses : actions/cache/restore@v4
296+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
296297 with :
297298 path : src/Sentry/Platforms/Native/sentry-native
298299 key : sentry-native-win-x64-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -306,7 +307,7 @@ jobs:
306307 uses : ./.github/actions/buildnative
307308
308309 - name : Setup MSBuild
309- uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
310+ uses : microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
310311
311312 - name : Run MSBuild
312313 id : msbuild
@@ -319,7 +320,7 @@ jobs:
319320
320321 - name : Upload logs
321322 if : ${{ always() }}
322- uses : actions/upload-artifact@v4
323+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
323324 with :
324325 name : ${{ runner.os }}-msbuild-logs
325326 path : |
@@ -345,7 +346,7 @@ jobs:
345346
346347 steps :
347348 - name : Checkout
348- uses : actions/checkout@v5
349+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
349350 with :
350351 submodules : recursive
351352
@@ -356,7 +357,7 @@ jobs:
356357 uses : ./.github/actions/buildnative
357358
358359 - name : Fetch NuGet Packages
359- uses : actions/download-artifact@v5
360+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
360361 with :
361362 name : ${{ github.sha }}
362363 path : src
@@ -375,7 +376,7 @@ jobs:
375376
376377 steps :
377378 - name : Checkout
378- uses : actions/checkout@v5
379+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
379380 with :
380381 submodules : recursive
381382 fetch-depth : 2 # default is 1 and codecov needs > 1
@@ -385,7 +386,7 @@ jobs:
385386 run : echo "CI_PUBLISHING_BUILD=true" >> $GITHUB_ENV
386387
387388 - name : Download sentry-native (macos)
388- uses : actions/cache/restore@v4
389+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
389390 with :
390391 path : src/Sentry/Platforms/Native/sentry-native
391392 key : sentry-native-macos-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }}
@@ -414,7 +415,7 @@ jobs:
414415 if : ${{ !startsWith(github.ref_name, 'release/') }}
415416
416417 steps :
417- - uses : actions/checkout@v5
418+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
418419 with :
419420 submodules : recursive
420421
0 commit comments