GitHub Actions: Upgrade pre-commit and drop the removed token (#9267)

* https://github.com/pre-commit/action/releases
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-python/releases

https://github.com/pre-commit/action#using-this-action-in-private-repositories explains why `token` was removed but is a bit difficult to understand.

Moving to running pre-commit on https://pre-commit.ci has proved to be the best solution on other projects.
This commit is contained in:
Christian Clauss 2024-03-06 14:27:46 +01:00 committed by GitHub
parent fb03dd977e
commit 6cbd4b7789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,14 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.10" python-version: "3.10"
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}