-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (30 loc) · 946 Bytes
/
deny.yml
File metadata and controls
34 lines (30 loc) · 946 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
name: check license, sources
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-and-cache-rust
with:
rustflags: ''
- uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.18.6
- name: "check licenses / supply chain"
run: |
cargo deny --all-features check >> $GITHUB_STEP_SUMMARY
- name: "build a dependency licenses inventory and post it to summary"
run: |
cargo deny --all-features list --layout crate --format json | jq -r 'to_entries[] | "* \(.key)", " * \(.value.licenses[])"' >> $GITHUB_STEP_SUMMARY