diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7b1b9146a44a..f0a078611eda 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -27,6 +27,9 @@ jobs: - name: Checkout DPNP repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + # use commit hash to make "no-commit-to-branch" check passing + ref: ${{ github.sha }} - name: Set up python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index d713b1d5ec19..9ea4819d47e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +* Updated `pre-commit` GitHub workflow to pass `no-commit-to-branch` check [#2501](https://github.com/IntelPython/dpnp/pull/2501) + ### Security ## [0.18.1] - 2025-06-24