Skip to content

[pull] trunk from spiceai:trunk #3664

[pull] trunk from spiceai:trunk

[pull] trunk from spiceai:trunk #3664

Workflow file for this run

---
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Set up Rust
uses: ./.github/actions/setup-rust
- name: Install cargo-deny
run: cargo install cargo-deny || true
- name: Check Rust Licenses
run: cargo deny check licenses