Skip to content

build: use reusable workflows in ci [WPB-14852] #4125

build: use reusable workflows in ci [WPB-14852]

build: use reusable workflows in ci [WPB-14852] #4125

Workflow file for this run

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