Skip to content

Commit

Permalink
Pin actions/cache/{restore,save} actions (#3969)
Browse files Browse the repository at this point in the history
Pins the actions to a specific version and hash. The rational for
pinning actions is to follow the suggestions by OpenSSF Scorecard, see
https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies.
  • Loading branch information
marbre authored Jan 17, 2025
1 parent ab55608 commit 5e1d68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
submodules: true

- name: Enable cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ env.CACHE_DIR }}
key: build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-${{ github.sha }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
bash build_tools/ci/build_posix.sh
- name: Save cache
uses: actions/cache/save@v4
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
if: ${{ !cancelled() }}
with:
path: ${{ env.CACHE_DIR }}
Expand Down

0 comments on commit 5e1d68e

Please sign in to comment.