From ffb1813a91b1db99db43e6b2c07dd2e0be305562 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Wed, 12 Jul 2023 13:25:34 +0800 Subject: [PATCH 1/6] adding license headers Signed-off-by: Patrick Zheng --- .github/licenserc.yml | 35 +++++++++++++++++++++++++++ .github/workflows/license-checker.yml | 32 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .github/licenserc.yml create mode 100644 .github/workflows/license-checker.yml diff --git a/.github/licenserc.yml b/.github/licenserc.yml new file mode 100644 index 00000000..05b4825c --- /dev/null +++ b/.github/licenserc.yml @@ -0,0 +1,35 @@ +header: + license: + spdx-id: Apache-2.0 + content: | + Copyright The Notation Authors. + 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-ignore: + - '**/*.md' + - 'CODEOWNERS' + - 'LICENSE' + - 'go.mod' + - 'go.sum' + - '**/testdata/**' + + comment: on-failure + +dependency: + files: + - go.mod + # licenses: + # # known issue: https://github.com/apache/skywalking-eyes/pull/107#issuecomment-1129761574 + # - name: github.com/chzyer/logex + # version: v1.1.10 + # license: MIT \ No newline at end of file diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml new file mode 100644 index 00000000..c78ad0c0 --- /dev/null +++ b/.github/workflows/license-checker.yml @@ -0,0 +1,32 @@ +name: License Checker + +on: + push: + branches: + - main + - release-* + - license + pull_request: + branches: + - main + - release-* + +permissions: + contents: write + pull-requests: write + +jobs: + check-license: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check license header + uses: apache/skywalking-eyes/header@v0.4.0 + with: + mode: fix + config: .github/licenserc.yml + - name: Check dependencies license + uses: apache/skywalking-eyes/dependency@v0.4.0 + with: + config: .github/licenserc.yml \ No newline at end of file From a860ba00239205b977ee1521b17e6d3fd62e9f62 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Wed, 12 Jul 2023 14:31:03 +0800 Subject: [PATCH 2/6] added license headers Signed-off-by: Patrick Zheng --- .github/.codecov.yml | 13 +++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/dependabot.yml | 13 +++++++++++++ .github/licenserc.yml | 16 +++++++++++++++- .github/workflows/build.yml | 13 +++++++++++++ .github/workflows/codeql.yml | 13 +++++++++++++ .github/workflows/license-checker.yml | 15 ++++++++++++++- .github/workflows/reusable-build.yml | 13 +++++++++++++ .github/workflows/reusable-codeql.yml | 13 +++++++++++++ .gitignore | 13 +++++++++++++ Makefile | 13 +++++++++++++ revocation/ocsp/errors.go | 13 +++++++++++++ revocation/ocsp/errors_test.go | 13 +++++++++++++ revocation/ocsp/ocsp.go | 13 +++++++++++++ revocation/ocsp/ocsp_test.go | 13 +++++++++++++ revocation/result/errors.go | 13 +++++++++++++ revocation/result/errors_test.go | 13 +++++++++++++ revocation/result/results.go | 13 +++++++++++++ revocation/result/results_test.go | 13 +++++++++++++ revocation/revocation.go | 13 +++++++++++++ revocation/revocation_test.go | 13 +++++++++++++ signature/algorithm.go | 13 +++++++++++++ signature/algorithm_test.go | 13 +++++++++++++ signature/cose/conformance_test.go | 13 +++++++++++++ signature/cose/envelope.go | 13 +++++++++++++ signature/cose/envelope_test.go | 13 +++++++++++++ signature/envelope.go | 13 +++++++++++++ signature/envelope_test.go | 13 +++++++++++++ signature/errors.go | 13 +++++++++++++ signature/errors_test.go | 13 +++++++++++++ signature/internal/base/envelope.go | 13 +++++++++++++ signature/internal/base/envelope_test.go | 13 +++++++++++++ signature/internal/signaturetest/algorithm.go | 13 +++++++++++++ .../internal/signaturetest/algorithm_test.go | 13 +++++++++++++ signature/internal/signaturetest/signer.go | 13 +++++++++++++ signature/internal/signaturetest/signer_test.go | 13 +++++++++++++ signature/jws/conformance_test.go | 13 +++++++++++++ signature/jws/envelope.go | 13 +++++++++++++ signature/jws/envelope_test.go | 13 +++++++++++++ signature/jws/jws.go | 13 +++++++++++++ signature/jws/jws_test.go | 13 +++++++++++++ signature/jws/jwt.go | 13 +++++++++++++ signature/jws/jwt_test.go | 13 +++++++++++++ signature/jws/types.go | 13 +++++++++++++ signature/signer.go | 13 +++++++++++++ signature/signer_test.go | 13 +++++++++++++ signature/types.go | 13 +++++++++++++ testhelper/certificatetest.go | 13 +++++++++++++ testhelper/httptest.go | 13 +++++++++++++ x509/cert.go | 13 +++++++++++++ x509/cert_test.go | 13 +++++++++++++ x509/cert_validations.go | 13 +++++++++++++ x509/cert_validations_test.go | 13 +++++++++++++ x509/key.go | 13 +++++++++++++ 54 files changed, 693 insertions(+), 2 deletions(-) diff --git a/.github/.codecov.yml b/.github/.codecov.yml index 0b3e2618..5e90d523 100644 --- a/.github/.codecov.yml +++ b/.github/.codecov.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + coverage: status: project: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 63759b41..d8072b25 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -10,6 +10,7 @@ # 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. + blank_issues_enabled: false contact_links: - name: Ask a question diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e9fba323..a5d2899e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: diff --git a/.github/licenserc.yml b/.github/licenserc.yml index 05b4825c..c373b67f 100644 --- a/.github/licenserc.yml +++ b/.github/licenserc.yml @@ -1,8 +1,21 @@ +# Copyright The Notary Project Authors. +# 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 content: | - Copyright The Notation Authors. + Copyright The Notary Project Authors. 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 @@ -19,6 +32,7 @@ header: - '**/*.md' - 'CODEOWNERS' - 'LICENSE' + - 'MAINTAINERS' - 'go.mod' - 'go.sum' - '**/testdata/**' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d97309c..288d03f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + name: Build on: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a0b40a1e..9a4272b1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + name: "CodeQL" on: diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index c78ad0c0..88130563 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + name: License Checker on: @@ -24,7 +37,7 @@ jobs: - name: Check license header uses: apache/skywalking-eyes/header@v0.4.0 with: - mode: fix + mode: check config: .github/licenserc.yml - name: Check dependencies license uses: apache/skywalking-eyes/dependency@v0.4.0 diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 67fee5b1..7277b6af 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + name: Reusable build on: diff --git a/.github/workflows/reusable-codeql.yml b/.github/workflows/reusable-codeql.yml index ff68d74c..fbe4e2ca 100644 --- a/.github/workflows/reusable-codeql.yml +++ b/.github/workflows/reusable-codeql.yml @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + name: Reusable CodeQL on: diff --git a/.gitignore b/.gitignore index 53dc08f4..37fa510e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + # VS Code .vscode diff --git a/Makefile b/Makefile index 0afb6a6d..d0466e93 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,16 @@ +# Copyright The Notary Project Authors. +# 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. + .PHONY: help help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}' diff --git a/revocation/ocsp/errors.go b/revocation/ocsp/errors.go index 8f52167b..1e4be210 100644 --- a/revocation/ocsp/errors.go +++ b/revocation/ocsp/errors.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package ocsp provides methods for checking the OCSP revocation status of a // certificate chain, as well as errors related to these checks package ocsp diff --git a/revocation/ocsp/errors_test.go b/revocation/ocsp/errors_test.go index 419498d9..4b8efe56 100644 --- a/revocation/ocsp/errors_test.go +++ b/revocation/ocsp/errors_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package ocsp import ( diff --git a/revocation/ocsp/ocsp.go b/revocation/ocsp/ocsp.go index a7e36351..d3def3c0 100644 --- a/revocation/ocsp/ocsp.go +++ b/revocation/ocsp/ocsp.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package ocsp provides methods for checking the OCSP revocation status of a // certificate chain, as well as errors related to these checks package ocsp diff --git a/revocation/ocsp/ocsp_test.go b/revocation/ocsp/ocsp_test.go index 1bd81b25..4afca12b 100644 --- a/revocation/ocsp/ocsp_test.go +++ b/revocation/ocsp/ocsp_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package ocsp import ( diff --git a/revocation/result/errors.go b/revocation/result/errors.go index 3e27167b..93641998 100644 --- a/revocation/result/errors.go +++ b/revocation/result/errors.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package result provides general objects that are used across revocation package result diff --git a/revocation/result/errors_test.go b/revocation/result/errors_test.go index dc3c9268..59b47c7b 100644 --- a/revocation/result/errors_test.go +++ b/revocation/result/errors_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package result import ( diff --git a/revocation/result/results.go b/revocation/result/results.go index ba0f229f..c7ecba51 100644 --- a/revocation/result/results.go +++ b/revocation/result/results.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package result provides general objects that are used across revocation package result diff --git a/revocation/result/results_test.go b/revocation/result/results_test.go index 2310dd04..1c5a503a 100644 --- a/revocation/result/results_test.go +++ b/revocation/result/results_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package result import ( diff --git a/revocation/revocation.go b/revocation/revocation.go index 20a03819..287935bb 100644 --- a/revocation/revocation.go +++ b/revocation/revocation.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package Revocation provides methods for checking the revocation status of a // certificate chain package revocation diff --git a/revocation/revocation_test.go b/revocation/revocation_test.go index 48755535..d6b2adb4 100644 --- a/revocation/revocation_test.go +++ b/revocation/revocation_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package revocation import ( diff --git a/signature/algorithm.go b/signature/algorithm.go index 4f106208..83eea104 100644 --- a/signature/algorithm.go +++ b/signature/algorithm.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/algorithm_test.go b/signature/algorithm_test.go index 40066772..7e4e238f 100644 --- a/signature/algorithm_test.go +++ b/signature/algorithm_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/cose/conformance_test.go b/signature/cose/conformance_test.go index a8a1e5e8..37d82243 100644 --- a/signature/cose/conformance_test.go +++ b/signature/cose/conformance_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package cose import ( diff --git a/signature/cose/envelope.go b/signature/cose/envelope.go index eb98f212..0c461d71 100644 --- a/signature/cose/envelope.go +++ b/signature/cose/envelope.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package cose import ( diff --git a/signature/cose/envelope_test.go b/signature/cose/envelope_test.go index 1a67479c..e91697b3 100644 --- a/signature/cose/envelope_test.go +++ b/signature/cose/envelope_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package cose import ( diff --git a/signature/envelope.go b/signature/envelope.go index 9383695c..e57805ab 100644 --- a/signature/envelope.go +++ b/signature/envelope.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package signature provides operations for types that implement // signature.Envelope or signature.Signer. // diff --git a/signature/envelope_test.go b/signature/envelope_test.go index 56ab5135..062948ee 100644 --- a/signature/envelope_test.go +++ b/signature/envelope_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/errors.go b/signature/errors.go index 26e7612a..d106c180 100644 --- a/signature/errors.go +++ b/signature/errors.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import "fmt" diff --git a/signature/errors_test.go b/signature/errors_test.go index 84cb20c1..5662c50f 100644 --- a/signature/errors_test.go +++ b/signature/errors_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/internal/base/envelope.go b/signature/internal/base/envelope.go index 544c6bd1..5dbf24f5 100644 --- a/signature/internal/base/envelope.go +++ b/signature/internal/base/envelope.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package base import ( diff --git a/signature/internal/base/envelope_test.go b/signature/internal/base/envelope_test.go index 45ae1f9b..e0be51c3 100644 --- a/signature/internal/base/envelope_test.go +++ b/signature/internal/base/envelope_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package base import ( diff --git a/signature/internal/signaturetest/algorithm.go b/signature/internal/signaturetest/algorithm.go index d28396f4..0073f3b3 100644 --- a/signature/internal/signaturetest/algorithm.go +++ b/signature/internal/signaturetest/algorithm.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package signaturetest includes variables and functions for signature // unit test. package signaturetest diff --git a/signature/internal/signaturetest/algorithm_test.go b/signature/internal/signaturetest/algorithm_test.go index c539cad9..bffd42ee 100644 --- a/signature/internal/signaturetest/algorithm_test.go +++ b/signature/internal/signaturetest/algorithm_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package signaturetest includes variables and functions for signature // unit test. package signaturetest diff --git a/signature/internal/signaturetest/signer.go b/signature/internal/signaturetest/signer.go index 3596d153..ebe7d720 100644 --- a/signature/internal/signaturetest/signer.go +++ b/signature/internal/signaturetest/signer.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signaturetest import ( diff --git a/signature/internal/signaturetest/signer_test.go b/signature/internal/signaturetest/signer_test.go index 77708b9a..67d62888 100644 --- a/signature/internal/signaturetest/signer_test.go +++ b/signature/internal/signaturetest/signer_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signaturetest import ( diff --git a/signature/jws/conformance_test.go b/signature/jws/conformance_test.go index f6d299b9..4b00d0c2 100644 --- a/signature/jws/conformance_test.go +++ b/signature/jws/conformance_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/envelope.go b/signature/jws/envelope.go index 87c7544f..eb280488 100644 --- a/signature/jws/envelope.go +++ b/signature/jws/envelope.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/envelope_test.go b/signature/jws/envelope_test.go index 4eddaf04..f93643bf 100644 --- a/signature/jws/envelope_test.go +++ b/signature/jws/envelope_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/jws.go b/signature/jws/jws.go index 811ad3c1..905df3a0 100644 --- a/signature/jws/jws.go +++ b/signature/jws/jws.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/jws_test.go b/signature/jws/jws_test.go index 3074924e..46065b50 100644 --- a/signature/jws/jws_test.go +++ b/signature/jws/jws_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/jwt.go b/signature/jws/jwt.go index 3067935f..9eb94c76 100644 --- a/signature/jws/jwt.go +++ b/signature/jws/jwt.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/jwt_test.go b/signature/jws/jwt_test.go index a02ef2a9..35b9482c 100644 --- a/signature/jws/jwt_test.go +++ b/signature/jws/jwt_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/jws/types.go b/signature/jws/types.go index e914bfa8..2c15b7e2 100644 --- a/signature/jws/types.go +++ b/signature/jws/types.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package jws import ( diff --git a/signature/signer.go b/signature/signer.go index 6364de6c..692616e4 100644 --- a/signature/signer.go +++ b/signature/signer.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/signer_test.go b/signature/signer_test.go index b92c0010..b573c9ff 100644 --- a/signature/signer_test.go +++ b/signature/signer_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/signature/types.go b/signature/types.go index 05a9c8ef..be51b091 100644 --- a/signature/types.go +++ b/signature/types.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package signature import ( diff --git a/testhelper/certificatetest.go b/testhelper/certificatetest.go index 87c23808..1e9eb0e3 100644 --- a/testhelper/certificatetest.go +++ b/testhelper/certificatetest.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package testhelper implements utility routines required for writing unit tests. // The testhelper should only be used in unit tests. package testhelper diff --git a/testhelper/httptest.go b/testhelper/httptest.go index 5579f3f0..186fcbbb 100644 --- a/testhelper/httptest.go +++ b/testhelper/httptest.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + // Package testhelper implements utility routines required for writing unit tests. // The testhelper should only be used in unit tests. package testhelper diff --git a/x509/cert.go b/x509/cert.go index 65385927..382a0f42 100644 --- a/x509/cert.go +++ b/x509/cert.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package x509 import ( diff --git a/x509/cert_test.go b/x509/cert_test.go index 2de95b7b..b903c162 100644 --- a/x509/cert_test.go +++ b/x509/cert_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package x509 import ( diff --git a/x509/cert_validations.go b/x509/cert_validations.go index dda44e1c..28b998d2 100644 --- a/x509/cert_validations.go +++ b/x509/cert_validations.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package x509 import ( diff --git a/x509/cert_validations_test.go b/x509/cert_validations_test.go index be8978ce..69446f2e 100644 --- a/x509/cert_validations_test.go +++ b/x509/cert_validations_test.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package x509 import ( diff --git a/x509/key.go b/x509/key.go index 68e7f615..bc0c705e 100644 --- a/x509/key.go +++ b/x509/key.go @@ -1,3 +1,16 @@ +// Copyright The Notary Project Authors. +// 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. + package x509 import ( From 5a5b81ded7ae0db8af9200773d9cb98916613dff Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Wed, 12 Jul 2023 14:43:57 +0800 Subject: [PATCH 3/6] added check license Signed-off-by: Patrick Zheng --- .github/licenserc.yml | 7 +------ .github/workflows/license-checker.yml | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/licenserc.yml b/.github/licenserc.yml index c373b67f..1ca3525e 100644 --- a/.github/licenserc.yml +++ b/.github/licenserc.yml @@ -41,9 +41,4 @@ header: dependency: files: - - go.mod - # licenses: - # # known issue: https://github.com/apache/skywalking-eyes/pull/107#issuecomment-1129761574 - # - name: github.com/chzyer/logex - # version: v1.1.10 - # license: MIT \ No newline at end of file + - go.mod \ No newline at end of file diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 88130563..7b1ef798 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -18,7 +18,6 @@ on: branches: - main - release-* - - license pull_request: branches: - main From a5e97d60e00d62de0b096d3f71839e003547ba03 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Wed, 12 Jul 2023 17:10:32 +0800 Subject: [PATCH 4/6] using reusable workflow Signed-off-by: Patrick Zheng --- .github/workflows/license-checker.yml | 14 +------- .../workflows/reusable-license-checker.yml | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/reusable-license-checker.yml diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 7b1ef798..b9bbac54 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -29,16 +29,4 @@ permissions: jobs: check-license: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Check license header - uses: apache/skywalking-eyes/header@v0.4.0 - with: - mode: check - config: .github/licenserc.yml - - name: Check dependencies license - uses: apache/skywalking-eyes/dependency@v0.4.0 - with: - config: .github/licenserc.yml \ No newline at end of file + uses: ./.github/workflows/reusable-license-checker.yml \ No newline at end of file diff --git a/.github/workflows/reusable-license-checker.yml b/.github/workflows/reusable-license-checker.yml new file mode 100644 index 00000000..4a71dec6 --- /dev/null +++ b/.github/workflows/reusable-license-checker.yml @@ -0,0 +1,33 @@ +# Copyright The Notary Project Authors. +# 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. + +name: Reusable license checker + +on: + workflow_call: + +jobs: + check-license: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check license header + uses: apache/skywalking-eyes/header@v0.4.0 + with: + mode: check + config: .github/licenserc.yml + - name: Check dependencies license + uses: apache/skywalking-eyes/dependency@v0.4.0 + with: + config: .github/licenserc.yml \ No newline at end of file From c2fdd32d43ce1c06087b9d386eb5222ea1a52d74 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Thu, 13 Jul 2023 15:30:42 +0800 Subject: [PATCH 5/6] removed release branch from license checker Signed-off-by: Patrick Zheng --- .github/workflows/license-checker.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index b9bbac54..61009577 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -17,11 +17,9 @@ on: push: branches: - main - - release-* pull_request: branches: - main - - release-* permissions: contents: write From 27c03d0fe22f5b0c9c2326eb48a46de31494c2c0 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Thu, 13 Jul 2023 15:32:26 +0800 Subject: [PATCH 6/6] clean up Signed-off-by: Patrick Zheng --- .github/workflows/license-checker.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 61009577..539c4a5b 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -15,11 +15,9 @@ name: License Checker on: push: - branches: - - main + branches: main pull_request: - branches: - - main + branches: main permissions: contents: write