-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (28 loc) · 966 Bytes
/
deny.yml
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
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@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1 # this implicitly caches Rust tools and build artifacts
with:
rustflags: ''
- uses: taiki-e/install-action@cargo-deny
- 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