Skip to content

Commit a1d19d8

Browse files
authored
🔒 Pin GitHub Actions to commit SHAs (#631)
* 🔒 pin tests.yml actions to commit SHAs * 🔒 pin build_documentation.yml actions to commit SHAs * 🔒 pin build_pr_documentation.yml actions to commit SHAs * 🔒 pin delete_doc_comment_trigger.yml actions to commit SHAs * 🔒 pin upload_pr_documentation.yml actions to commit SHAs
1 parent 0f8e322 commit a1d19d8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/build_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
12+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1313
with:
1414
commit_sha: ${{ github.sha }}
1515
package: setfit

.github/workflows/build_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
build:
12-
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
12+
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1313
with:
1414
commit_sha: ${{ github.event.pull_request.head.sha }}
1515
pr_number: ${{ github.event.number }}

.github/workflows/delete_doc_comment_trigger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ on:
77

88
jobs:
99
delete:
10-
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@main
10+
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1111
with:
1212
pr_number: ${{ github.event.number }}

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout code
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232

3333
- name: Setup Python environment
34-
uses: actions/setup-python@v4
34+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

@@ -44,7 +44,7 @@ jobs:
4444
shell: bash
4545

4646
- name: Try to load cached dependencies
47-
uses: actions/cache@v3
47+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3
4848
id: restore-cache
4949
with:
5050
path: ${{ env.pythonLocation }}
@@ -63,7 +63,7 @@ jobs:
6363
run: python -m pip install .
6464

6565
- name: Restore HF models from cache
66-
uses: actions/cache/restore@v3
66+
uses: actions/cache/restore@6f8efc29b200d32929f49075959781ed54ec270c # v3
6767
with:
6868
path: |
6969
~/.cache/huggingface/hub
@@ -80,7 +80,7 @@ jobs:
8080
echo "NEW_HF_CACHE_HASH=$(find ~/.cache/huggingface/hub ~/.cache/torch -type f -exec sha256sum {} + | LC_ALL=C sort | sha256sum | cut -d ' ' -f 1)" >> $GITHUB_ENV
8181
8282
- name: Save new HF models to cache
83-
uses: actions/cache/save@v3
83+
uses: actions/cache/save@6f8efc29b200d32929f49075959781ed54ec270c # v3
8484
with:
8585
path: |
8686
~/.cache/huggingface/hub

.github/workflows/upload_pr_documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
11+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
1212
with:
1313
package_name: setfit
1414
secrets:

0 commit comments

Comments
 (0)