Skip to content

Commit 6cbd4b7

Browse files
authored
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.
1 parent fb03dd9 commit 6cbd4b7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-python@v4
18+
- uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.10"
2121

22-
- uses: pre-commit/[email protected]
23-
with:
24-
token: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)