mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: add license check
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -174,6 +174,18 @@ jobs:
|
||||
- name: Build and test JS frontend
|
||||
run: make console/data/frontend test-js
|
||||
|
||||
licenses:
|
||||
name: ⚖️ Check licenses
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup
|
||||
- name: License check
|
||||
run: make licensecheck
|
||||
|
||||
docker:
|
||||
name: 🐋 Build Docker images
|
||||
needs:
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
---
|
||||
# List of licenses compatible with AGPL-3.0-only
|
||||
allowlist:
|
||||
- Apache-2.0
|
||||
- BSD-3-Clause
|
||||
@@ -7,3 +8,5 @@ allowlist:
|
||||
- MPL-2.0
|
||||
- MIT
|
||||
- ISC
|
||||
- WTFPL
|
||||
- 0BSD
|
||||
|
||||
2
Makefile
2
Makefile
@@ -190,7 +190,7 @@ licensecheck: console/frontend/node_modules | $(WWHRD) ; $(info $(M) check depen
|
||||
$Q err=0 ; go mod vendor && $(WWHRD) --quiet check || err=$$? ; rm -rf vendor/ ; exit $$err
|
||||
$Q cd console/frontend ; npm exec --no -- license-compliance \
|
||||
--production \
|
||||
--allow "MIT;ISC;Apache-2.0;BSD-3-Clause;WTFPL;0BSD" \
|
||||
--allow "$$(sed -n 's/^ - //p' ../../.wwhrd.yml | paste -sd ";")" \
|
||||
--report detailed
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
Reference in New Issue
Block a user