Skip to content

Commit

Permalink
Add license header checker (#879)
Browse files Browse the repository at this point in the history
Signed-off-by: kwanhur <huang_hua2012@163.com>
  • Loading branch information
kwanhur authored Nov 1, 2021
1 parent f80b67e commit 02eb65a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Check license header
- name: Check License Header
uses: apache/skywalking-eyes@main

# Build
- name: Build
shell: bash
Expand Down
40 changes: 40 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) 2021 The BFE Authors.
#
# 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: The BFE Authors

paths-ignore:
- 'conf'
- 'docs/material'
- 'docs/images'
- '**/go.mod'
- '**/go.sum'
- '**/*.md'
- '**/testdata/*'
- '**/test_data/*/**'
- '**/*/testdata/*/**'
- 'LICENSE'
- 'NOTICE'
- 'VERSION'
- 'staticcheck.conf'
- 'bfe_basic/condition/parser/y.go'

comment: on-failure

dependency:
files:
- go.mod

0 comments on commit 02eb65a

Please sign in to comment.