|
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md |
|
- name: Check licenses |
|
shell: bash |
|
working-directory: ${{ inputs.working-directory }} |
|
env: |
|
GO_LICENSES_IGNORE: ${{ inputs.go-licenses-ignore }} |
|
run: | |
|
set -eux |
|
flags= |
|
for f in ${GO_LICENSES_IGNORE}; do |
|
flags="${flags} --ignore ${f}" |
|
done |
|
go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib ${flags} |
The license checker should read
https://github.com/cncf/foundation/blob/main/license-exceptions/CNCF-licensing-exceptions.csv by default
project-checks/action.yml
Lines 97 to 109 in d7751f3
The license checker should read
https://github.com/cncf/foundation/blob/main/license-exceptions/CNCF-licensing-exceptions.csv by default