License Scanning for Rust #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: License Scanning for Rust | |
on: | |
schedule: | |
- cron: '0 8,18 * * 1-5' | |
push: | |
paths: | |
- 'rust/Cargo.toml' | |
- '.github/workflows/license-scanning-rust.yml' | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 | |
with: | |
toolchain: stable | |
- run: cargo install --force cargo-audit | |
- name: Install and run licensebat | |
run: | | |
cargo add licensebat-cli | |
cargo run licensebat --dependency-file ~/rust/Cargo.lock --licrc-file ~/rust/license.licrc | |
working-directory: rust |