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
name: Security Audit
# 周期性依赖安全审计(v015 T050,R-ci-004):cargo audit + cargo deny check
on:
schedule:
- cron: "0 3 * * 1" # 每周一 03:00 UTC
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
audit:
name: cargo audit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3
with:
tool: cargo-audit
- name: Run cargo audit
run: cargo audit --deny warnings
deny:
name: cargo deny
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3
with:
tool: cargo-deny
- name: Run cargo deny check
run: cargo deny check