File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 9292 - name : cargo-deny (judge)
9393 run : cargo deny check
9494
95+ bottlerocket-license-scan :
96+ runs-on : ubuntu-22.04
97+ steps :
98+ - uses : actions/checkout@v3
99+
100+ - name : Read ./rust-toolchain
101+ id : read-rust-toolchain
102+ run : echo "toolchain=$(cat ./rust-toolchain)" >> "$GITHUB_OUTPUT"
103+ shell : bash
104+
105+ - name : Set up Rust
106+ uses : dtolnay/rust-toolchain@master
107+ with :
108+ toolchain : ${{ steps.read-rust-toolchain.outputs.toolchain }}
109+
110+ - name : Install bottlerocket-license-scan
111+ run : cargo install bottlerocket-license-scan --git https://github.com/bottlerocket-os/bottlerocket-sdk
112+
113+ - name : bottlerocket-license-scan (judge)
114+ run : |
115+ git clone https://github.com/spdx/license-list-data.git /tmp/license-list-data --depth 1
116+ ~/.cargo/bin/bottlerocket-license-scan --clarify ./clarify.toml --out-dir ./license_files --spdx-data /tmp/license-list-data/json/details cargo ./Cargo.toml
117+ tree ./license_files
118+
95119 build :
96120 runs-on : ubuntu-22.04
97121 steps :
You can’t perform that action at this time.
0 commit comments