Skip to content

Commit e274b37

Browse files
authored
🔒 Pin GitHub Actions to commit SHAs (#1201)
* 🔒 pin slow_tests.yaml actions to commit SHAs * 🔒 pin quality.yaml actions to commit SHAs * 🔒 pin doc-build.yml actions to commit SHAs * 🔒 pin doc-pr-build.yml actions to commit SHAs * 🔒 pin doc-pr-upload.yml actions to commit SHAs * 🔒 pin pr_style_bot.yaml actions to commit SHAs * 🔒 pin trufflehog.yml actions to commit SHAs
1 parent 33acf35 commit e274b37

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/doc-build.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: lighteval

.github/workflows/doc-pr-build.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/doc-pr-upload.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: lighteval
1414
secrets:

.github/workflows/pr_style_bot.yaml

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

1010
jobs:
1111
style:
12-
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
12+
uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@e000c1c89c65aee188041723456ac3a479416d4c # main
1313
with:
1414
python_quality_dependencies: "[quality]"
1515
secrets:

.github/workflows/quality.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
- name: Setup Python environment
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
2222
with:
2323
python-version: '3.10'
2424
- name: Install dependencies

.github/workflows/slow_tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
fi
2626
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929
with:
3030
lfs: true
3131

3232
- name: Install uv
33-
uses: astral-sh/setup-uv@v5
33+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
3434
with:
3535
enable-cache: true
3636

@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Cache CUDA Toolkit
4444
id: cache-cuda
45-
uses: actions/cache@v4
45+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
4646
with:
4747
path: /usr/local/cuda-12.8
4848
key: cuda-toolkit-12-8-${{ runner.os }}

.github/workflows/trufflehog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
with:
1616
fetch-depth: 0
1717
- name: Secret Scanning
18-
uses: trufflesecurity/trufflehog@main
18+
uses: trufflesecurity/trufflehog@6bd2d14f7a4bc1e569fa3550efa7ec632a4fa67b # main
1919
with:
2020
extra_args: --only-verified

0 commit comments

Comments
 (0)