-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 799 Bytes
/
Copy pathsecurity.yml
File metadata and controls
35 lines (32 loc) · 799 Bytes
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
name: Security audit
on:
schedule:
- cron: "0 9 * * *"
push:
branches: [main]
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
- "deny.toml"
- ".cargo/audit.toml"
- ".github/workflows/security.yml"
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
audit:
name: cargo audit + cargo deny advisories
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-audit
- name: cargo audit
run: cargo audit --deny warnings
- name: cargo deny (advisories)
uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories