Skip to content

Commit

Permalink
License header check
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchunfu committed Mar 2, 2024
1 parent 961d9b0 commit ff89530
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/license-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

---
name: License Check
on:
pull_request_target:
push:
branches:
- main
concurrency:
group: license-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
license-check:
name: "License header"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Check license header"
uses: apache/skywalking-eyes/header@main
with:
log: info
config: .licenserc.yaml
mode: check
49 changes: 49 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Licensed to Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Apache Software Foundation (ASF) licenses this file to you 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
#
# https://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: Apache Software Foundation

paths-ignore:
- NOTICE
- LICENSE
- DISCLAIMER
- mvnw.cmd
- .mvn
- .gitmodules
- .gitattributes
- .github/actions
- '**/known-dependencies-*.txt'
- '**/*.md'
- '**/*.mdx'
- '**/*.json'
- '**/*.iml'
- '**/*.ini'
- '**/*.crt'
- '**/*.pem'
- '**/*.txt'
- '**/*.csv'
- '**/*.svg'
- '**/.gitignore'
- '**/LICENSE'
- '**/NOTICE'
- '**/.gitkeep'
comment: on-failure

0 comments on commit ff89530

Please sign in to comment.