Skip to content

Commit 2d58951

Browse files
committed
Add zizmor to CI
1 parent c72c0be commit 2d58951

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ concurrency:
1010
group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
1111
cancel-in-progress: true
1212

13+
permissions: {}
14+
1315
jobs:
1416
prechecks:
1517
uses: ./.github/workflows/pre-commit.yml

.github/workflows/nix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ concurrency:
1010
group: nix-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
1111
cancel-in-progress: true
1212

13+
permissions: {}
14+
1315
jobs:
1416
nix-build:
1517
runs-on: ubuntu-latest
@@ -25,5 +27,7 @@ jobs:
2527
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2628
# Checkout of the current head in the working dir
2729
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
30+
with:
31+
persist-credentials: false
2832
- name: Check nix flake
2933
run: nix flake check -L

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ concurrency:
99
group: style-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
1010
cancel-in-progress: true
1111

12+
permissions: {}
13+
1214
jobs:
1315
pre-commit:
1416
runs-on: ubuntu-latest
1517
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-python@v5
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19+
with:
20+
persist-credentials: false
21+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
1822
- name: install dependencies for sorting regressionfiles.yaml
1923
run: |
2024
python -m pip install 'ruamel.yaml'
21-
- uses: pre-commit/action@v3.0.1
25+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ repos:
5151
- id: actionlint
5252
additional_dependencies:
5353
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.10.0"
54+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
55+
rev: "v1.9.0"
56+
hooks:
57+
- id: zizmor
58+
args: [--no-progress, --persona=pedantic]

0 commit comments

Comments
 (0)