@@ -7,8 +7,9 @@ name: dependencies
77 - Cargo.lock
88 - Cargo.toml
99 - " **/Cargo.toml"
10- - deny.toml
11- - .github/workflows/dependencies.yml
10+ - config/deny.toml
11+ - config/osv-scanner.toml
12+ - .github/workflows/dependencies.yaml
1213 workflow_dispatch :
1314
1415permissions :
@@ -22,29 +23,32 @@ defaults:
2223 run :
2324 shell : bash
2425
25- # Deliberately mise-free: the only tools this job needs are the three
26- # dep-audit binaries, all of which taiki-e/install-action ships
27- # prebuilt. Skipping mise also skips the conda:openssl + workspace
28- # tool install path that the main CI flows take ~3 min on, keeping
29- # this check fast (~30 s typical).
3026jobs :
3127 dependencies :
3228 runs-on : ubuntu-latest
3329 timeout-minutes : 25
3430 steps :
3531 - name : Checkout
3632 uses : actions/checkout@v4
33+ with :
34+ persist-credentials : false
3735
38- - name : Install dep-audit tools
36+ - name : Install tools
3937 uses : taiki-e/install-action@v2
4038 with :
41- tool : cargo-deny,cargo-unmaintained,osv-scanner
39+ tool : cargo-deny,cargo-unmaintained,mise@2026.6.5,osv-scanner
40+
41+ - name : Trust mise config
42+ run : mise trust
43+
44+ - name : Generate config/osv-scanner.toml from config/deny.toml
45+ run : mise run gen:osv-scanner
4246
4347 - name : cargo deny check
44- run : cargo deny check
48+ run : mise run cargo-deny- check
4549
4650 - name : osv-scanner
47- run : osv-scanner --lockfile Cargo.lock
51+ run : mise run osv-scanner
4852
4953 # `cargo unmaintained` persists per-repository archival/last-commit
5054 # lookups under `$XDG_CACHE_HOME/cargo-unmaintained` (default
6872 - name : cargo unmaintained
6973 env :
7074 GITHUB_TOKEN : ${{ github.token }}
71- run : cargo unmaintained
75+ run : mise run cargo-unmaintained-check
76+
77+ - name : Check config/osv-scanner.toml is committed
78+ run : git diff --exit-code -- config/osv-scanner.toml
0 commit comments