This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add Simple GitHub-Action Based License Checker (#20617)
Remove ASF license headers on 3rdparty files based on discussion: > It depends on what you mean by significant, usually changes made to 3rd party files stay under the original license. See [1] on this, note that "Do not add the standard Apache License header to the top of third-party source files.”. If the license was to change, and the headers replaced then that needs to be noted in NOTICE. Please make sure that the license is noted in LICENSE. https://lists.apache.org/thread.html/r4010c53f976819c94f3450469db8b936f7c15cb046a61f0d488674d3%40%3Cgeneral.incubator.apache.org%3E
- Loading branch information
Showing
12 changed files
with
137 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: license check | ||
|
||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
licensecheck: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Update Submodules | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Check License Header | ||
uses: apache/skywalking-eyes@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: Apache Software Foundation | ||
|
||
paths-ignore: | ||
- 'dist' | ||
- 'licenses' | ||
- '**/*.md' | ||
- '**/*.ipynb' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
- '3rdparty' | ||
- '.gitignore' | ||
- '.codecov.yml' | ||
- '.gitattributes' | ||
- '.github' | ||
- '.gitmodules' | ||
- '.licenserc.yaml' | ||
- '.asf.yaml' | ||
- 'CODEOWNERS' | ||
- 'DISCLAIMER' | ||
- 'KEYS' | ||
- 'python/mxnet/_cy3/README' | ||
- 'tools/dependencies/LICENSE.binary.dependencies' | ||
# files not distributed in source archive (listed in tools/source-exclude-artifacts.txt) | ||
- 'docs' | ||
# files licensed under apache-2.0 license but do not include full license headers recognized by skywalking-eyes | ||
- 'python/mxnet/cython/ndarray.pyx' | ||
- 'python/mxnet/cython/symbol.pyx' | ||
- 'src/operator/deformable_convolution-inl.h' | ||
- 'src/operator/deformable_convolution.cc' | ||
- 'src/operator/deformable_convolution.cu' | ||
- 'src/operator/contrib/deformable_psroi_pooling-inl.h' | ||
- 'src/operator/contrib/deformable_psroi_pooling.cc' | ||
- 'src/operator/contrib/deformable_psroi_pooling.cu' | ||
- 'src/operator/contrib/multi_proposal-inl.h' | ||
- 'src/operator/contrib/multi_proposal.cc' | ||
- 'src/operator/contrib/multi_proposal.cu' | ||
- 'src/operator/contrib/psroi_pooling.cc' | ||
- 'src/operator/contrib/psroi_pooling.cu' | ||
- 'src/operator/nn/mkldnn/mkldnn_base-inl.h' | ||
# files licensed under boost license | ||
- 'cmake/Modules/FindJeMalloc.cmake' | ||
# files licensed under bsd 3-clause | ||
- 'cmake/upstream/FindBLAS.cmake' | ||
- 'cmake/upstream/FindCUDAToolkit.cmake' | ||
- 'cmake/upstream/select_compute_arch.cmake' | ||
- 'src/operator/contrib/erfinv-inl.h' | ||
- 'src/operator/numpy/np_einsum_op-inl.h' | ||
- 'src/operator/numpy/np_einsum_op.cc' | ||
- 'src/operator/numpy/np_einsum_path_op-inl.h' | ||
# files licensed under caffe/mit license | ||
- 'src/operator/modulated_deformable_convolution-inl.h' | ||
- 'src/operator/modulated_deformable_convolution.cc' | ||
- 'src/operator/modulated_deformable_convolution.cu' | ||
- 'src/operator/contrib/nn/deformable_im2col.cuh' | ||
- 'src/operator/contrib/nn/deformable_im2col.h' | ||
- 'src/operator/contrib/nn/modulated_deformable_im2col.cuh' | ||
- 'src/operator/contrib/nn/modulated_deformable_im2col.h' | ||
- 'src/operator/nn/im2col.cuh' | ||
- 'src/operator/nn/im2col.h' | ||
- 'src/operator/nn/pool.cuh' | ||
- 'src/operator/nn/pool.h' | ||
# symlinks | ||
- 'include/dlpack' # symlink to 3rdparty/dlpack/include/dlpack | ||
- 'include/dmlc' # symlink to 3rdparty/dmlc-core/include/dmlc | ||
- 'include/mshadow' # symlink to 3rdparty/mshadow/mshadow | ||
- 'include/onednn' # symlinks to 3rdparty/onednn | ||
# test/build data | ||
- 'tests/python/mkl/data/test_mkldnn_test_mkldnn_model_model1.json' | ||
|
||
|
||
comment: on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters