Skip to content

Commit 6c44365

Browse files
authored
Merge pull request #2310 from IntelPython/fix-pre-commit-workflow
[MAINT] Use commit hash for checkout in `pre-commit` workflow
2 parents 7caf3dd + 2837456 commit 6c44365

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
timeout-minutes: 30
1616

1717
steps:
18-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
- name: Checkout dpctl
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
ref: ${{ github.sha }} # use hash to pass no-commit-to-branch check
1922
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2023
with:
2124
python-version: '3.14'

0 commit comments

Comments
 (0)