Skip to content

go-licenses-ignore: support reading CNCF-licensing-exceptions.csv #24

@AkihiroSuda

Description

@AkihiroSuda

project-checks/action.yml

Lines 97 to 109 in d7751f3

# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions