From 2837456fff1a1f074e6cae2b6e3be8e6d22590e2 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 6 May 2026 13:32:35 -0700 Subject: [PATCH] use commit for checkout in pre-commit prevents no-commit-to-branch from failing --- .github/workflows/pre-commit.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8c8f6fc9a9..221297dacb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,10 @@ jobs: timeout-minutes: 30 steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Checkout dpctl + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: ${{ github.sha }} # use hash to pass no-commit-to-branch check - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: '3.14'