Skip to content

Commit c90d939

Browse files
committed
🔒 Pass the pedantic zizmor
1 parent d8e3761 commit c90d939

3 files changed

Lines changed: 61 additions & 10 deletions

File tree

.github/workflows/docs.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,28 @@ on:
99
push:
1010
branches: [main]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions: {}
17+
1218
jobs:
1319
docs:
1420
name: Build docs and check links
1521
runs-on: ubuntu-latest
1622
steps:
17-
- uses: actions/checkout@v6
18-
- uses: pandoc/actions/setup@v1
19-
- uses: ts-graphviz/setup-graphviz@v2
20-
- uses: actions/setup-python@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
26+
- uses: pandoc/actions/setup@86321b6dd4675f5014c611e05088e10d4939e09e # v1.1.1
27+
- uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2
28+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2129
with:
2230
# Keep in sync with .readthedocs.yaml
2331
python-version-file: .python-version
2432
- name: Setup cached uv
25-
uses: hynek/setup-cached-uv@v2
33+
uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
2634
- name: Create venv and install docs dependencies
2735
run: |
2836
uv venv

.github/workflows/pre-commit.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@
44

55
name: pre-commit
66

7-
on: [push, pull_request]
7+
on:
8+
pull_request:
9+
push:
10+
branches: [main]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions: {}
817

918
jobs:
1019
pre-commit:
20+
name: pre-commit
1121
# External pull requests should be checked, but not our own internal pull
1222
# requests again, as these are already checked by the push on the branch.
1323
# Without this if condition, the checks would be performed twice, as
@@ -18,10 +28,12 @@ jobs:
1828
github.event.pull_request.head.repo.full_name != github.repository
1929
runs-on: ubuntu-latest
2030
steps:
21-
- uses: actions/checkout@v6
22-
- uses: actions/setup-python@v6
23-
- uses: actions/cache@v5
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
with:
33+
persist-credentials: false
34+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
35+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
2436
with:
2537
path: ~/.cache/pre-commit
2638
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
27-
- uses: pre-commit/action@v3.0.1
39+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.github/workflows/zizmor.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://github.com/woodruffw/zizmor
2+
name: Zizmor
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["**"]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions: {}
15+
16+
jobs:
17+
zizmor:
18+
name: Run zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run zizmor
29+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
30+
with:
31+
persona: pedantic

0 commit comments

Comments
 (0)