-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (46 loc) · 1.43 KB
/
cargo-deny.yml
File metadata and controls
54 lines (46 loc) · 1.43 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
name: Cargo Deny
permissions:
contents: read
on:
push:
branches: [ "main", "master", "development", "dev" ]
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'deny.toml'
- '.github/workflows/cargo-deny.yml'
pull_request:
branches: [ "main", "master", "development", "dev" ]
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'deny.toml'
- '.github/workflows/cargo-deny.yml'
schedule:
- cron: "17 5 * * 3"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cargo-deny:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Harden the runner (egress audit)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Install cargo-deny
run: cargo install --locked --version 0.19.6 cargo-deny
- name: Check root Rust workspace
run: cargo deny --locked --all-features check advisories bans sources
- name: Check native benchmark crate
run: cargo deny --manifest-path scripts/native_bench/bench_pecos/Cargo.toml --locked --all-features check advisories bans sources