Skip to content

Commit 4240c3c

Browse files
authored
Update precommit hooks and github action with 10 days cooldown and pin to sha1 commit (#2377)
1 parent 24de608 commit 4240c3c

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
- name: Install greadlink
1717
if: startsWith(runner.os, 'macOS')
1818
run: brew install coreutils
@@ -26,11 +26,11 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Set up Python
31-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3232
with:
33-
python-version: 3.8
33+
python-version: 3.12
3434
- name: Install docs dependencies
3535
run: python3 -m pip install -r docs/requirements.txt
3636
- name: Build the docs
@@ -40,15 +40,15 @@ jobs:
4040
runs-on: ubuntu-latest
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444
- name: Set up Go
45-
uses: actions/setup-go@v4
45+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4646
with:
47-
go-version: 1.21.0
47+
go-version: 1.25.8
4848
- name: Set up Python
49-
uses: actions/setup-python@v4
49+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5050
with:
51-
python-version: 3.8
51+
python-version: 3.12
5252
- name: Install shfmt
5353
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
5454
- name: Install shellcheck
@@ -71,12 +71,12 @@ jobs:
7171

7272
steps:
7373
- name: Repository checkout
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7575
with:
7676
fetch-depth: 0
7777

7878
- id: ShellCheck
7979
name: Differential ShellCheck
80-
uses: redhat-plumbers-in-action/differential-shellcheck@v5
80+
uses: redhat-plumbers-in-action/differential-shellcheck@d965e66ec0b3b2f821f75c8eff9b12442d9a7d1e # v5.5.6
8181
with:
8282
token: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ minimum_pre_commit_version: 1.18.1
66
exclude: "docs/_build/|vendor/"
77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v2.3.0
9+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1010
hooks:
1111
- id: trailing-whitespace
1212
exclude: ".(md|rst)$"
@@ -15,14 +15,14 @@ repos:
1515
- id: mixed-line-ending
1616
- id: check-added-large-files
1717
- repo: https://github.com/jumanjihouse/pre-commit-hooks
18-
rev: 2.1.5
18+
rev: 38980559e3a605691d6579f96222c30778e5a69e # frozen: 3.0.0
1919
hooks:
2020
- id: git-check # Configure in .gitattributes
2121
- id: shellcheck
2222
files: "\\.(bash)$"
2323
- id: shfmt
2424
- repo: https://github.com/Lucas-C/pre-commit-hooks
25-
rev: v1.1.7
25+
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # frozen: v1.5.6
2626
hooks:
2727
# - id: forbid-crlf
2828
- id: remove-crlf

docs/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx==4.5.0
2-
sphinx-rtd-theme==0.5.0
3-
sphinxemoji==0.1.8
4-
docutils==0.17.1
1+
sphinx==9.1.0
2+
sphinx-rtd-theme==3.1.0
3+
sphinxemoji==0.3.2
4+
docutils==0.22.4

test/lint-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pre-commit==2.3.0
1+
pre-commit==4.5.1

0 commit comments

Comments
 (0)