diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 92fb76b..2fc9414 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -24,4 +24,8 @@ jobs: - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: 3.x - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 + # Not pre-commit/action: it calls actions/cache by tag, which the organization policy rejects. + - name: Install pre-commit + run: pip install pre-commit==4.7.0 + - name: Run pre-commit + run: pre-commit run --all-files --show-diff-on-failure --color=always