add license checker (#499)

This commit is contained in:
jimin 2022-11-08 12:05:24 +08:00 committed by GitHub
parent 40dbc64114
commit 31c5f51cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 146 additions and 0 deletions

27
.github/workflows/license-checker.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: License checker
on:
pull_request:
branches: [ develop, master ]
jobs:
check-license:
runs-on: ubuntu-latest
steps:
# step 1
- name: Checkout
uses: actions/checkout@v2.4.0
# step 2
- name: Check License Header
uses: apache/skywalking-eyes/header@25edfc2fd8d52fb266653fb5f6c42da633d85c07
with:
log: info
config: .licenserc.yaml
mode: check
# step 3
- name: Check Dependencies' License
uses: apache/skywalking-eyes/dependency@25edfc2fd8d52fb266653fb5f6c42da633d85c07
with:
log: info
config: .licenserc.yaml
mode: check

66
.licenserc.yaml Normal file
View File

@ -0,0 +1,66 @@
#
# Copyright 1999-2019 Seata.io Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
header:
license:
spdx-id: Apache-2.0
copyright-owner: Seata.io
content: |
Copyright 1999-2019 Seata.io Group.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
paths-ignore:
- '.gitignore'
- '*.md'
- 'LICENSE'
- '**/*.md'
- '.github/**'
- '.babelrc'
- '.docsite'
- '.eslintrc'
- '.htaccess'
- '.nojekyll'
- '404.html'
- 'CNAME'
- 'img/**'
- '**/*.json'
- '**/*.js'
- '**/*.css'
- '**/*.jsx'
- '**/*.scss'
- 'server'
- '**/*.svg'
- '*.ejs'
- '*.xml'
- '*.yml'
- '*.map'
- 'saga_designer/**'
comment: on-failure
dependency:
files:
- package.json

View File

@ -1 +1,14 @@
//Copyright 1999-2019 Seata.io Group.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js"],"mappings":"AAAA;;;;;;AAgsIA;;;;;;AAw9RA;;;;;;AAw3lBA;;;;;;AAMA;;;;;;AAMA;;;;;AAktIA;;;;;AAyiGA","sourceRoot":""}

View File

@ -1,3 +1,16 @@
<!--Copyright 1999-2019 Seata.io Group.-->
<!--Licensed under the Apache License, Version 2.0 (the "License");-->
<!--you may not use this file except in compliance with the License.-->
<!--You may obtain a copy of the License at-->
<!--http://www.apache.org/licenses/LICENSE-2.0-->
<!--Unless required by applicable law or agreed to in writing, software-->
<!--distributed under the License is distributed on an "AS IS" BASIS,-->
<!--WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-->
<!--See the License for the specific language governing permissions and-->
<!--limitations under the License.-->
<!DOCTYPE html>
<html lang="zh-CN">

View File

@ -1,3 +1,16 @@
<!--Copyright 1999-2019 Seata.io Group.-->
<!--Licensed under the Apache License, Version 2.0 (the "License");-->
<!--you may not use this file except in compliance with the License.-->
<!--You may obtain a copy of the License at-->
<!--http://www.apache.org/licenses/LICENSE-2.0-->
<!--Unless required by applicable law or agreed to in writing, software-->
<!--distributed under the License is distributed on an "AS IS" BASIS,-->
<!--WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-->
<!--See the License for the specific language governing permissions and-->
<!--limitations under the License.-->
<!DOCTYPE html>
<html lang="zh-CN">

View File

@ -1,3 +1,17 @@
<!-- Copyright 1999-2019 Seata.io Group. -->
<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
<!-- you may not use this file except in compliance with the License. -->
<!-- You may obtain a copy of the License at -->
<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
<!-- Unless required by applicable law or agreed to in writing, software -->
<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
<!-- See the License for the specific language governing permissions and -->
<!-- limitations under the License. -->
<!DOCTYPE html>
<html lang="en">