diff --git a/.github/workflows/licenserc.yaml b/.github/workflows/licenserc.yaml new file mode 100644 index 0000000..aea9af9 --- /dev/null +++ b/.github/workflows/licenserc.yaml @@ -0,0 +1,58 @@ +header: + license: + spdx-id: Apache-2.0 + content: | + SPDX-FileCopyrightText: test + SPDX-License-Identifier: Apache-2.0 + + paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**']. + - '**' + + paths-ignore: + - '.github/**' + - '.reuse/dep5' + - 'LICENSES/*.txt' + - 'grafana/*.json' + - 'website/scripts/**' + - 'hack/**' + - 'hack/openapi-generator/openapi-info.yaml' + - 'hack/boilerplate.go.txt' + - 'docs/**' + - '**/*.md' + - 'LICENSE' + - 'NOTICE' + - 'PROJECT' + - '**/*.gitignore' + - '**/*.helmignore' + - '**/*.tpl' + - '**/go.mod' + - '**/go.sum' + - '**/*.lock' + - '**/*.json' + - '**/.gitkeep' + - '**/*.txt' + - '*Dockerfile*' + - 'Makefile' + - 'pkg/idproxy/web/**' + - 'pkg/apis/scheme_builder.go' # Belongs to the Kubernetes authors + - 'cmd/tcp-proxy/main.go' # MIT License + - 'pkg/tcp-proxy/proxy/*.go' # MIT License + - '**/zz_generated.deepcopy.go' # Generated by Kubebuilder + + + comment: on-failure + + # license-location-threshold specifies the index threshold where the license header can be located, + # after all, a "header" cannot be TOO far from the file start. + license-location-threshold: 80 + + language: + JSX: + extensions: + - ".jsx" + comment_style_id: SlashAsterisk + +on: + pull_request: + branches: + - main