[pull] trunk from spiceai:trunk #3768
This file contains hidden or 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: Check for forbidden licenses | |
| # Checks for any forbidden/copyleft licenses using their SPDX identifiers | |
| # (https://spdx.org/licenses/) | |
| # Listings of packages and their licenses are generated by different tools, | |
| # one for each language used in the project: | |
| # | |
| # - Go modules use go-licenses (github.com/google/go-licenses) | |
| # - Python packages use pip-licenses (https://github.com/raimon49/pip-licenses) | |
| # - Node packages use NPM License Checker (https://www.npmjs.com/package/license-checker) | |
| # | |
| # Each license listing is checked against a regex in FORBIDDEN_LICENSE_CHECK to | |
| # ensure no forbidden licenses are present. If any are detected, the build is failed. | |
| # List of copyleft licenses derived from Blue Oak Council Guide to Copyleft | |
| # (https://blueoakcouncil.org/copyleft) | |
| # List of forbidden licenses derived from Google License Classifier | |
| # (https://github.com/google/licenseclassifier) | |
| on: | |
| pull_request: | |
| branches: | |
| - trunk | |
| - release-* | |
| - release/* | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'README.md' | |
| - 'version.txt' | |
| - 'acknowledgements.md' | |
| env: | |
| FORBIDDEN_LICENSE_CHECK: | | |
| grep -B 1 -E "GPL|CC-BY-SA|CC-BY-NC|CC-BY-NC-SA|CC-BY-NC-ND|APSL|CPAL|EUPL|NPOSL|OSL|SSPL|Parity|RPL|QPL|Sleepycat|copyleft|CDDL|CPL|EPL|ErlPL|IPL|MS-RL|SPL|Facebook|Commons-Clause" | grep . && exit 1 || echo "ok" | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| jobs: | |
| license-check-rust: | |
| name: Check Rust Licenses | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Rust | |
| uses: ./.github/actions/setup-rust | |
| - name: Install cargo-deny | |
| run: cargo install cargo-deny --version 0.19.6 --locked --force | |
| - name: Check Rust Licenses | |
| run: cargo deny check licenses | |
| - name: Check Rust Advisories | |
| run: cargo deny check advisories |