-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (41 loc) · 1.61 KB
/
licenses.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Licenses
on:
push:
jobs:
cargo-deny:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Read ./rust-toolchain
id: read-rust-toolchain
run: echo "toolchain=$(cat ./rust-toolchain)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.read-rust-toolchain.outputs.toolchain }}
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-deny
run: cargo binstall cargo-deny@^0.13 --no-confirm --log-level debug
- name: cargo-deny (main)
run: cargo deny check
bottlerocket-license-scan:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Read ./rust-toolchain
id: read-rust-toolchain
run: echo "toolchain=$(cat ./rust-toolchain)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.read-rust-toolchain.outputs.toolchain }}
- name: Install bottlerocket-license-scan
run: cargo install bottlerocket-license-scan --git https://github.com/bottlerocket-os/bottlerocket-sdk
- name: bottlerocket-license-scan (main)
run: |
git clone https://github.com/spdx/license-list-data.git /tmp/license-list-data --depth 1
~/.cargo/bin/bottlerocket-license-scan --clarify ./clarify.toml --out-dir ./license_files --spdx-data /tmp/license-list-data/json/details cargo ./Cargo.toml
tree ./license_files