[skip ci]Add license check (#10779)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/10783/head
zhuwenxing 2021-10-27 20:54:23 +08:00 committed by GitHub
parent 3c5ef43783
commit e646382518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

11
.github/.licenserc.yaml vendored Normal file
View File

@ -0,0 +1,11 @@
header:
license:
spdx-id: Apache-2.0
copyright-owner: LF AI & Data foundation
paths:
- 'internal/**/*.go'
dependency:
files:
- go.mod

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

@ -0,0 +1,14 @@
name: License Checker
on:
workflow_dispatch:
jobs:
check-license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check License Header
uses: apache/skywalking-eyes@main
with:
log: info
config: .github/.licenserc.yaml