forked from darshanDevrai/brahmand
-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (33 loc) · 852 Bytes
/
security.yml
File metadata and controls
40 lines (33 loc) · 852 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
36
37
38
39
40
name: Security Audit
on:
pull_request:
branches: [ "main" ]
schedule:
# Run weekly on Monday at 08:00 UTC to catch new advisories
- cron: '0 8 * * 1'
workflow_dispatch:
jobs:
audit:
name: cargo audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.92.0
- name: Install cargo-audit
run: cargo install cargo-audit --locked --version 0.22.0
- name: Run cargo audit
run: cargo audit
deny:
name: cargo deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-deny
uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check
log-level: warn
arguments: --all-features