Skip to content

Commit 7f1f9d0

Browse files
authored
🔒 pin ci.yml actions to commit SHAs (#340)
1 parent b38443e commit 7f1f9d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Skip fork PRs — they can't access the secrets this reusable workflow needs.
1717
# Runs on push, workflow_dispatch, and same-repo PRs.
1818
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
19-
uses: huggingface/hf-workflows/.github/workflows/swift_transformers_unit_tests.yml@main
19+
uses: huggingface/hf-workflows/.github/workflows/swift_transformers_unit_tests.yml@a88e7fa2eaee28de5a4d6142381b1fb792349b67 # main
2020
with:
2121
# Use the PR merge ref, not the head.
2222
pr_number: ${{ github.event.pull_request.number }}
@@ -38,17 +38,17 @@ jobs:
3838
steps:
3939
- name: Checkout PR merge ref if called from PR
4040
if: ${{ github.event.pull_request.number }}
41-
uses: actions/checkout@v6
41+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4242
with:
4343
ref: refs/pull/${{ github.event.pull_request.number }}/merge
4444
fetch-depth: 0
4545

4646
- name: Checkout fallback
4747
if: ${{ !github.event.pull_request.number }}
48-
uses: actions/checkout@v6
48+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4949

5050
- name: Cache Swift Package Manager dependencies
51-
uses: actions/cache@v5
51+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5252
with:
5353
path: ~/.cache/org.swift.swiftpm
5454
key: ${{ runner.os }}-swift-${{ matrix.swift }}-${{ matrix.traits == '' && 'xet-off' || 'xet-on' }}-spm-${{ hashFiles('Package*.swift') }}-${{ hashFiles('Package.resolved') }}
@@ -73,14 +73,14 @@ jobs:
7373
steps:
7474
- name: Checkout PR merge ref if called from PR
7575
if: ${{ github.event.pull_request.number }}
76-
uses: actions/checkout@v6
76+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7777
with:
7878
ref: refs/pull/${{ github.event.pull_request.number }}/merge
7979
fetch-depth: 0
8080

8181
- name: Checkout fallback
8282
if: ${{ !github.event.pull_request.number }}
83-
uses: actions/checkout@v6
83+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8484

8585
- run: |
8686
swift format lint --strict --recursive .

0 commit comments

Comments
 (0)