diff --git a/.github/.licenserc.yaml b/.github/.licenserc.yaml new file mode 100644 index 00000000000..2fab89c87dc --- /dev/null +++ b/.github/.licenserc.yaml @@ -0,0 +1,77 @@ +# Copyright contributors to the oneDAL project +# +# 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: contributors to the oneDAL project + copyright-year: "" + pattern: | + Copyright (\d{4} Intel Corporation|(?:contributors to the oneDAL project)) + + 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. + paths: + - '**' + + paths-ignore: + - '.gitignore' + - '.gitattributes' + # Bazel related files + - '.bazelrc' + - '.bazelversion' + - 'BUILD' + - 'WORKSPACE' + - 'MODULE.bazel' + - '**/*.tpl.BUILD' + # Clang-format configs + - '.clang-format' + # All .md files + - '**/*.md' + # All .csv files + - '**/*.csv' + # All Doxygen files and some from docs/ + - 'docs/doxygen/**' + - 'docs/requirements.txt' + - 'docs/source/_static/style.css' + - 'docs/source/_templates/layout.html' + - 'docs/source/substitutions_common.txt' + - 'docs/source/substitutions_specific.txt' + # Some files from .ci/.github + - '.ci/pipeline/**/*.yml' + - '.ci/env/environment.yml' + - '.ci/scripts/conformance-scripts/algorithms.txt' + - '.ci/scripts/conformance-scripts/run_tests_with_context.py' + - '.github/workflows/**/*.yml' + - '.github/.mergify.yml' + - '.github/CODEOWNERS' + - '.github/renovate.json' + # Specific files + - 'license.txt' + - 'third-party-programs-mkl.txt' + - 'third-party-programs.txt' + - 'deploy/local/config.txt' + + comment: on-failure + + license-location-threshold: 80 # specifies the index threshold where the license header can be located. diff --git a/.github/workflows/skywalking-eyes.yml b/.github/workflows/skywalking-eyes.yml new file mode 100644 index 00000000000..627636f608a --- /dev/null +++ b/.github/workflows/skywalking-eyes.yml @@ -0,0 +1,25 @@ +name: Check License Header + +on: + pull_request: + branches: + - main + push: + branches: + - main + +permissions: read-all + +jobs: + check-license-header: + name: Check License Header + if: github.repository == 'oneapi-src/oneDAL' + runs-on: ubuntu-latest + steps: + - name: "Checkout code" + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Check License Header + uses: apache/skywalking-eyes/header@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # always prefer to use a revision instead of `main`. + with: + config: ".github/.licenserc.yaml" + mode: "check" diff --git a/cpp/daal/src/externals/service_math_ref.h b/cpp/daal/src/externals/service_math_ref.h index 07062c1ba2f..6d6cd76448a 100644 --- a/cpp/daal/src/externals/service_math_ref.h +++ b/cpp/daal/src/externals/service_math_ref.h @@ -1,6 +1,6 @@ /* file: service_math_ref.h */ /******************************************************************************* -* Copyright 2014-2023 Intel Corporation +* Copyright 2014 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl.hpp b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl.hpp index 6d1c4362309..9dfe252e849 100644 --- a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl.hpp +++ b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl.hpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2021-2022 Intel Corporation +* Copyright 2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl_dpc.cpp b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl_dpc.cpp index 9fac38d25b0..fc875683784 100644 --- a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl_dpc.cpp +++ b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_kernel_hist_impl_dpc.cpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2021-2022 Intel Corporation +* Copyright 2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels.hpp b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels.hpp index ba9e5a93d72..c832a4fd1ac 100644 --- a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels.hpp +++ b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels.hpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2021-2022 Intel Corporation +* Copyright 2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels_dpc.cpp b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels_dpc.cpp index 9130e22f8ca..11549f3d62d 100644 --- a/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels_dpc.cpp +++ b/cpp/oneapi/dal/algo/decision_forest/backend/gpu/train_service_kernels_dpc.cpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright 2021-2022 Intel Corporation +* Copyright 2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.