2525 permissions :
2626 pull-requests : write
2727 steps :
28- - uses : actions/checkout@v7
28+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2929
3030 - name : Generate GitHub App Token
3131 id : app-token
3434 client-id : ${{ vars.ALGOLIA_BOT_CLIENT_ID }}
3535 private-key : ${{ secrets.ALGOLIA_BOT_PRIVATE_KEY }}
3636
37- - uses : marocchino/sticky-pull-request-comment@v3
37+ - uses : marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
3838 with :
3939 GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
4040 message : |
5555 GITHUB_CONTEXT : ${{ toJSON(github) }}
5656 run : echo "$GITHUB_CONTEXT"
5757
58- - uses : actions/checkout@v7
58+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5959 with :
6060 fetch-depth : 0
6161
@@ -136,7 +136,7 @@ jobs:
136136 needs : setup
137137 if : ${{ needs.setup.outputs.RUN_SCRIPTS == 'true' }}
138138 steps :
139- - uses : actions/checkout@v7
139+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
140140
141141 - name : Setup
142142 uses : ./.github/actions/setup
@@ -160,7 +160,7 @@ jobs:
160160 timeout-minutes : 10
161161 needs : setup
162162 steps :
163- - uses : actions/checkout@v7
163+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
164164
165165 - name : Setup
166166 uses : ./.github/actions/setup
@@ -171,7 +171,7 @@ jobs:
171171 run : yarn cli build specs -s
172172
173173 - name : Store bundled specs
174- uses : actions/upload-artifact@v7
174+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
175175 with :
176176 if-no-files-found : error
177177 name : specs
@@ -197,7 +197,7 @@ jobs:
197197 METIS_API_KEY : ${{ secrets.METIS_API_KEY }}
198198 name : client javascript${{ needs.setup.outputs.RUN_GEN_JAVASCRIPT == 'true' && format('@{0}', fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).version) || '' }}
199199 steps :
200- - uses : actions/checkout@v7
200+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
201201
202202 - name : Download specs artifacts
203203 uses : ./scripts/ci/actions/restore-artifacts
@@ -253,13 +253,13 @@ jobs:
253253 run : echo "dir=$(cd tests/output/javascript && yarn config get cacheFolder)" >> $GITHUB_OUTPUT
254254
255255 - name : Restore Yarn js tests
256- uses : actions/cache@v6
256+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
257257 with :
258258 path : ${{ steps.yarn-cache-dir-tests.outputs.dir || 'tests/output/javascript/.yarn/cache' }}
259259 key : yarn-cache-tests-${{ hashFiles('tests/output/javascript/yarn.lock') }}
260260
261261 - name : Cache js tests node modules
262- uses : actions/cache@v6
262+ uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
263263 with :
264264 path : tests/output/javascript/node_modules
265265 key : node-modules-tests-${{ hashFiles('tests/output/javascript/yarn.lock') }}
@@ -296,7 +296,7 @@ jobs:
296296 run : zip -r -y clients-javascript.zip clients/algoliasearch-client-javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).testsToStore }} ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).guidesToStore }} -x "**/node_modules**" "**/.yarn/cache/**" "**/.yarn/install-state.gz" "**/build/**" "**/dist/**" "**/.gradle/**" "**/bin/**" "**/.nx/**"
297297
298298 - name : Store javascript clients
299- uses : actions/upload-artifact@v7
299+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
300300 with :
301301 if-no-files-found : error
302302 name : clients-javascript
@@ -327,7 +327,7 @@ jobs:
327327 hasBreakingChanges : ${{ steps.breakingChanges.outputs.hasBreakingChanges }}
328328 name : client ${{ matrix.client.language }}@${{ matrix.client.version }}
329329 steps :
330- - uses : actions/checkout@v7
330+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
331331
332332 - name : Download specs artifacts
333333 uses : ./scripts/ci/actions/restore-artifacts
@@ -419,7 +419,7 @@ jobs:
419419
420420 - name : Store ${{ matrix.client.language }} clients
421421 if : ${{ matrix.client.isMainVersion }}
422- uses : actions/upload-artifact@v7
422+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
423423 with :
424424 if-no-files-found : error
425425 name : clients-${{matrix.client.language }}
@@ -442,7 +442,7 @@ jobs:
442442 success : ${{ steps.setoutput.outputs.success }}
443443 name : client kotlin${{ format('@{0}', fromJSON(needs.setup.outputs.KOTLIN_DATA).version) }} macos
444444 steps :
445- - uses : actions/checkout@v7
445+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
446446
447447 - name : Download specs artifacts
448448 uses : ./scripts/ci/actions/restore-artifacts
@@ -492,7 +492,7 @@ jobs:
492492 success : ${{ steps.setoutput.outputs.success }}
493493 name : client swift${{ format('@{0}', fromJSON(needs.setup.outputs.SWIFT_DATA).version) }} linux
494494 steps :
495- - uses : actions/checkout@v7
495+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
496496 if : ${{ env.ALGOLIA_APPLICATION_ID != '' }}
497497
498498 - name : Download specs artifacts
@@ -544,7 +544,7 @@ jobs:
544544 client-id : ${{ vars.ALGOLIA_BOT_CLIENT_ID }}
545545 private-key : ${{ secrets.ALGOLIA_BOT_PRIVATE_KEY }}
546546
547- - uses : actions/checkout@v7
547+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
548548 with :
549549 fetch-depth : 0
550550 ref : ${{ github.event.pull_request.head.ref }}
@@ -608,7 +608,7 @@ jobs:
608608 } >> "$GITHUB_OUTPUT"
609609
610610 - name : update generation comment
611- uses : marocchino/sticky-pull-request-comment@v3
611+ uses : marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
612612 if : ${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT == '' }}
613613 with :
614614 GITHUB_TOKEN : ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
@@ -621,7 +621,7 @@ jobs:
621621 ${{ steps.benchmark.outputs.BENCHMARK_SECTION }}
622622
623623 - name : update generation comment
624- uses : marocchino/sticky-pull-request-comment@v3
624+ uses : marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
625625 if : ${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT != '' }}
626626 with :
627627 GITHUB_TOKEN : ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
@@ -643,7 +643,7 @@ jobs:
643643
644644 - name : Deploy documentation
645645 if : ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' && needs.setup.outputs.RUN_WEBSITE == 'true' }}
646- uses : nwtgck/actions-netlify@v4 .0
646+ uses : nwtgck/actions-netlify@d22a32a27c918fe470bbc562e984f80ec48c2668 # v4.0 .0
647647 with :
648648 publish-dir : ' website/build'
649649 production-branch : main
@@ -700,7 +700,7 @@ jobs:
700700 # Here, we push to most of the allowed repo, so no need to scope
701701 owner : algolia
702702
703- - uses : actions/checkout@v7
703+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
704704 with :
705705 fetch-depth : 0
706706 ref : ${{ needs.codegen.outputs.generatedCommit }}
@@ -746,7 +746,7 @@ jobs:
746746 SINCE_DATE : ${{ vars.SNIPPETS_SINCE_DATE }}
747747
748748 - name : notify failures
749- uses : slackapi/slack-github-action@v3.0.3
749+ uses : slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
750750 if : ${{ !cancelled() && (steps.spreadGeneration.outputs.FAILED_LANGUAGES != '' || steps.waitForAllReleases.outputs.FAILED_RELEASES != '' || steps.indexSnippets.outcome == 'failure') }}
751751 with :
752752 method : chat.postMessage
0 commit comments