Skip to content

Commit 246a878

Browse files
committed
chore: add zizmor
1 parent 08760bd commit 246a878

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/verify.yml

Lines changed: 13 additions & 8 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,11 +59,12 @@ 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
67+
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6368
- name: Install grcov
6469
run: cargo install grcov
6570
- name: Add llvm-tools
@@ -69,6 +74,6 @@ jobs:
6974
- name: Compute coverage
7075
run: make cover
7176
- name: Upload coverage
72-
uses: codecov/codecov-action@v5
77+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
7378
with:
7479
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

0 commit comments

Comments
 (0)