forked from praxis-proxy/praxis
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (55 loc) · 2.1 KB
/
Copy pathsupply-chain.yaml
File metadata and controls
71 lines (55 loc) · 2.1 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Supply Chain
# ------------------------------------------------------------------------------
# Workflow Settings
# ------------------------------------------------------------------------------
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions: {}
jobs:
# ----------------------------------------------------------------------------
# Security Audit
# ----------------------------------------------------------------------------
security-audit:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install stable Rust
uses: dtolnay/rust-toolchain@6190aa5fb88a88ee71c12769924bbe63a9ab152e # 1.96.0
- name: Cache cargo binaries
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-bin-audit
- name: Install cargo-audit
run: command -v cargo-audit || cargo install cargo-audit --locked
- name: Run cargo audit
run: cargo audit
# ----------------------------------------------------------------------------
# License & Dependency Check
# ----------------------------------------------------------------------------
dependency-check:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install stable Rust
uses: dtolnay/rust-toolchain@6190aa5fb88a88ee71c12769924bbe63a9ab152e # 1.96.0
- name: Cache cargo binaries
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-bin-deny
- name: Install cargo-deny
run: command -v cargo-deny || cargo install cargo-deny --locked
- name: Run cargo deny
run: cargo deny check