Skip to content

Commit 469f723

Browse files
committed
chore: add zizmor
1 parent 08760bd commit 469f723

4 files changed

Lines changed: 35 additions & 16 deletions

File tree

.config/zizmor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
rules:
3+
secrets-outside-env:
4+
disable: true

.github/workflows/verify.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,38 @@ env:
1616
RUSTC_WRAPPER: sccache
1717
IN_CI: "true"
1818

19+
permissions: {}
20+
1921
jobs:
2022
build:
2123
runs-on: ubuntu-latest
2224
steps:
2325
- name: Check out repo and build scripts
24-
uses: actions/checkout@v4
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2527
with:
2628
submodules: recursive
29+
persist-credentials: false
2730
- name: Run sccache
28-
uses: mozilla-actions/sccache-action@v0.0.7
31+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
2932
- name: Build
3033
run: make build
3134

3235
lint:
3336
runs-on: ubuntu-latest
3437
steps:
3538
- name: Check out repo and build scripts
36-
uses: actions/checkout@v4
39+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3740
with:
3841
submodules: recursive
42+
persist-credentials: false
3943
- name: Run sccache
40-
uses: mozilla-actions/sccache-action@v0.0.7
44+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
4145
- name: rustfmt nightly
4246
run: |
4347
rustup toolchain install nightly-x86_64-unknown-linux-gnu
4448
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
4549
- name: Install Python
46-
uses: actions/setup-python@v5
50+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4751
with:
4852
python-version: "3.13"
4953
- name: Install pre-commit
@@ -55,20 +59,23 @@ jobs:
5559
runs-on: ubuntu-latest
5660
steps:
5761
- name: Check out repo and build scripts
58-
uses: actions/checkout@v4
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5963
with:
6064
submodules: recursive
65+
persist-credentials: false
6166
- name: Run sccache
62-
uses: mozilla-actions/sccache-action@v0.0.7
63-
- name: Install grcov
64-
run: cargo install grcov
65-
- name: Add llvm-tools
66-
run: rustup component add llvm-tools-preview
67+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
68+
- name: Install cargo-nextest
69+
uses: taiki-e/install-action@0fde6d128a3d980ceac30be8c8b8739abd963b81 # v2.70.0
70+
with:
71+
tool: cargo-nextest
72+
- name: Install cargo-llvm-cov
73+
uses: taiki-e/install-action@0fde6d128a3d980ceac30be8c8b8739abd963b81 # v2.70.0
74+
with:
75+
tool: cargo-llvm-cov
6776
- name: Test
68-
run: make test
69-
- name: Compute coverage
70-
run: make cover
77+
run: make test cover
7178
- name: Upload coverage
72-
uses: codecov/codecov-action@v5
79+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
7380
with:
7481
token: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ repos:
2020
hooks:
2121
- id: fmt
2222
args: ['--', '--unstable-features']
23+
- repo: "https://github.com/zizmorcore/zizmor-pre-commit"
24+
rev: v1.23.1
25+
hooks:
26+
- id: zizmor
27+
args:
28+
- --fix=all
29+
- --config
30+
- .config/zizmor.yml

build

Submodule build updated 1 file

0 commit comments

Comments
 (0)