Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: add license check action #346

Merged
merged 4 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: License Check
yuluo-yx marked this conversation as resolved.
Show resolved Hide resolved

on:
pull_request:
branches:
- main

jobs:
license-header:
name: License header
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Check license header
uses: apache/skywalking-eyes@5b7ee1731d036b5aac68f8bd3fc9e6f98ada082e
146 changes: 146 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
#
# 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.
#
header:
license:
spdx-id: Apache-2.0
copyright-owner: Apache Software Foundation

paths-ignore:
- '.github/ISSUE_TEMPLATE'
- '.github/PULL_REQUEST_TEMPLATE'
- '**/.gitignore'
- '.gitmodules'
- '.lift'
- '.mvn'
- 'apm-protocol/apm-network/src/main/proto/.gitignore'
- 'codeStyle.xml'
- 'docker/.env'
- 'dist'
- 'licenses'
- 'dist-material/release-docs'
- '**/*.md'
- '**/*.json'
- '**/*.ftl'
- '**/target/**'
- '**/*.iml'
- '**/*.ini'
- '**/*.crt'
- '**/*.pem'
- '**/*.key'
- '**/*.txt'
- 'LICENSE'
- 'NOTICE'
- 'skywalking-ui/dist'
- 'skywalking-ui/node_modules'
- 'skywalking-ui/node'
- 'skywalking-ui/.browserslistrc'
- 'skywalking-ui/.prettierrc'
- 'skywalking-ui/src/types/auto-imports.d.ts'
- 'skywalking-ui/src/types/components.d.ts'
- '**/src/main/fbs/istio/**'
- '**/src/main/proto/envoy/**'
- '**/src/main/proto/udpa/**'
- '**/src/main/proto/google/**'
- '**/src/main/proto/istio/**'
- '**/src/main/proto/jaeger/**'
- '**/src/main/proto/mixer/**'
- '**/src/main/proto/policy/**'
- '**/src/main/proto/cilium/**'
- '**/src/main/proto/prometheus/client_model/metrics.proto'
- '**/src/main/proto/protoc-gen-swagger/**'
- '**/src/main/proto/validate/validate.proto'
- '**/src/main/proto/opentelemetry/**'
- 'oap-server/server-starter/src/main/resources/version.properties'
- '**/mockito-extensions/**'
- 'oap-server/server-library/library-async-profiler-jfr-parser'

comment: on-failure

dependency:
files:
- pom.xml
- skywalking-ui/package.json
excludes:
- name: org.openjdk.jmh:jmh-core # We don't distribute the dependencies, they are just for the build process
recursive: true
- name: org.apache.skywalking:* # Exclude self dependencies
- name: org.apache.skywalking:microbench
recursive: true
licenses:
- name: org.slf4j:slf4j-api
version: 1.7.30,1.7.32
license: MIT
- name: com.squareup.okhttp3:okhttp
version: 3.14.9,3.12.2
license: Apache-2.0
- name: com.google.guava:listenablefuture
version: 9999.0-empty-to-avoid-conflict-with-guava
license: Apache-2.0
- name: io.swagger:swagger-annotations
version: 1.6.9
license: Apache-2.0
- name: com.squareup.okio:okio
version: 1.15.0,1.17.2
license: Apache-2.0
- name: com.squareup.retrofit2:retrofit
version: 2.3.0,2.5.0
license: Apache-2.0
- name: com.squareup.retrofit2:converter-jackson
version: 2.3.0,2.5.0
license: Apache-2.0
- name: com.fasterxml.jackson.module:jackson-module-kotlin
version: 2.13.4
license: Apache-2.0
- name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
version: 2.17.1
license: Apache-2.0
- name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
version: 2.17.1
license: Apache-2.0
- name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
version: 2.15.2
license: Apache-2.0
- name: com.graphql-java:graphql-java-extended-scalars
version: 18.1
license: MIT
- name: com.graphql-java:graphql-java
version: 21.0
license: MIT
- name: com.github.luben:zstd-jni
version: 1.4.3-1
license: BSD-2-Clause
- name: org.antlr:antlr4-runtime
version: 4.11.1
license: BSD-3-Clause
- name: com.google.flatbuffers:flatbuffers-java
version: 1.12.0
license: Apache-2.0
- name: build.buf.protoc-gen-validate:pgv-java-stub
version: 0.6.13
license: Apache-2.0
- name: build.buf.protoc-gen-validate:protoc-gen-validate
version: 0.6.13
license: Apache-2.0
- name: com.aayushatharva.brotli4j:service
version: 1.16.0
license: Apache-2.0
- name: io.vertx:vertx-grpc
version: 4.5.9
license: EPL-2.0

Loading