Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
ci: add license header checker (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Max Xu <[email protected]>
  • Loading branch information
maxsxu authored Mar 20, 2023
1 parent 6bb4040 commit f520dda
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ on:
- '*'

jobs:
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Check license header
uses: apache/skywalking-eyes@e1a02359b239bd28de3f6d35fdc870250fa513d5

lint:
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 28 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2023 StreamNative, Inc.
#
# 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: StreamNative, Inc.
copyright-year: '2023'
software-name: pulsar-admin-go

paths-ignore:
- '**/go.mod'
- '**/go.sum'
- 'LICENSE'
- 'NOTICE'

comment: on-failure

0 comments on commit f520dda

Please sign in to comment.