-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.28 KB
/
Copy pathsecurity.yml
File metadata and controls
46 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Security Audit
on:
# Run weekly on Monday at 00:00 UTC
schedule:
- cron: "0 0 * * 1"
# Allow manual trigger
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
# Note: Basic security checks (cargo-audit, cargo-deny) now run in CI workflow
# on every push/PR. This workflow focuses on deeper/scheduled checks.
jobs:
# Check for outdated dependencies
outdated:
name: Outdated Dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-outdated
run: cargo install cargo-outdated --locked
- name: Check for outdated dependencies
run: cargo outdated --exit-code 1
continue-on-error: true # Informational only
# Thorough unused dependency check (requires nightly)
unused-deps-thorough:
name: Unused Dependencies (thorough)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install cargo-udeps
run: cargo install cargo-udeps --locked
- name: Check for unused dependencies
run: cargo +nightly udeps --all-features