-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.72 KB
/
Copy pathcargo-audit.yml
File metadata and controls
57 lines (48 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# cargo-audit.yml — RustSec advisory check for the Rust workspace.
#
# Catches CVEs in transitive dependencies of crates/typed-wasm-verify
# without waiting for dependabot to file a PR. Distinct from e2e.yml's
# cargo-verify job (which runs `cargo build` + `cargo test`) — audit is
# concerned with security advisories, not API breakage.
#
# Track C deliverable from the production-path Phase 0 work
# (docs/PRODUCTION-PATH.adoc §Phase 0). Tracks under issue #48.
name: Cargo Audit
on:
pull_request:
branches: ['**']
push:
branches: [main, master]
# Weekly scheduled run so new advisories surface even on quiescent code.
# Monday 04:17 UTC — off the typical hour boundary to avoid GH Actions
# cron contention.
schedule:
- cron: '17 4 * * 1'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cargo-audit:
name: Cargo audit (RustSec advisories)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Match the cargo-verify pattern in e2e.yml: use the preinstalled
# rustup directly rather than a SHA-pinned third-party action.
- name: Install Rust toolchain
run: |
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
cargo --version
- name: Install cargo-audit
run: cargo install cargo-audit --locked
- name: Run cargo audit
run: cargo audit --deny warnings