Skip to content

Commit 1f2f730

Browse files
phelix001claude
andcommitted
ci: pin Rust toolchain, update actions, add audit and JS checks
- Add rust-toolchain.toml pinning to 1.85 (MSRV for edition 2024) - Update actions/checkout from v2 to v4 - Remove manual rustfmt/clippy install (now declared in rust-toolchain.toml) - Add cargo audit step for dependency vulnerability scanning - Add node --check for web extension JS syntax validation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e4bb9de commit 1f2f730

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ jobs:
1717
name: Build
1818
runs-on: ubuntu-22.04
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121

2222
- run: rustup show active-toolchain
23-
- run: rustup component add rustfmt clippy
2423

2524
- name: Configure Rust cache
2625
uses: Swatinem/rust-cache@v2
@@ -64,3 +63,11 @@ jobs:
6463

6564
- name: Check formatting
6665
run: cargo fmt --all --check
66+
67+
- name: Audit dependencies
68+
run: |
69+
cargo install cargo-audit --locked
70+
cargo audit
71+
72+
- name: Validate web extension JS syntax
73+
run: node --check webext/add-on/*.js

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ See [ARCHITECTURE.md](/ARCHITECTURE.md) for the full design and code map.
1717
## Build System
1818

1919
Uses **Meson + Ninja + Cargo** (not plain `cargo build`).
20+
Rust toolchain pinned to **1.85** via `rust-toolchain.toml` (MSRV for edition 2024).
2021

2122
```shell
2223
# Setup

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "1.85"
3+
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)