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
name: Security Audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.cargo/audit.toml'
- '.github/workflows/audit.yml'
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.cargo/audit.toml'
- '.github/workflows/audit.yml'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
# Read-only. The audit step is configured with `createIssues: false`, so no
# `issues: write` permission is required. Do not widen this without also
# changing that input — the previous configuration attempted issue creation
# with a read-only token and failed silently on every scheduled run.
permissions:
contents: read
concurrency:
group: audit-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
audit:
name: cargo audit
runs-on: ubuntu-latest
steps:
- name: Checkout
# actions/checkout v7.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Audit Rust dependencies
# actions-rust-lang/audit v1.2.7
uses: actions-rust-lang/audit@72c09e02f132669d52284a3323acdb503cfc1a24
with:
# Advisories are ignored exclusively through `.cargo/audit.toml`,
# which carries the reachability rationale, owner and review date for
# each entry. Keep this input empty so that file stays the single
# source of truth.
ignore: ''
# Informational advisories (unmaintained / unsound / notice) must fail
# the run; `.cargo/audit.toml` opts into reporting them.
denyWarnings: 'true'
# Issue creation needs `issues: write`, which this workflow
# deliberately does not grant. A failing run is the signal.
createIssues: 'false'