From 73dd5b3be0e2b8b9aae72940de0550a05779cfdc Mon Sep 17 00:00:00 2001 From: Paul Greenberg Date: Sat, 2 Dec 2023 12:04:16 -0500 Subject: [PATCH] github: add cla workflow --- .github/workflows/cla.yml | 27 ++++++ CONTRIBUTING.md | 22 +---- assets/cla/CLA.md | 154 +++++++++++++++++++++++++++++++++++ assets/cla/corporate_cla.md | 33 -------- assets/cla/individual_cla.md | 94 --------------------- 5 files changed, 182 insertions(+), 148 deletions(-) create mode 100644 .github/workflows/cla.yml create mode 100644 assets/cla/CLA.md delete mode 100644 assets/cla/corporate_cla.md delete mode 100644 assets/cla/individual_cla.md diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..c174a5e --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,27 @@ +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + CLAAssistant: + runs-on: ubuntu-latest + steps: + - name: "CLA Assistant" + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + uses: contributor-assistant/github-action@v2.3.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: 'assets/cla/signatures.json' + path-to-document: 'https://github.com/greenpau/go-authcrunch/blob/main/assets/cla/CLA.md' + branch: 'main' + allowlist: greenpau,bot* diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4c905b..dc7778e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,27 +5,7 @@ I'd love to accept your pull request! Before I can take them, we have to jump a couple of legal hurdles. -***NOTE***: Only original source code from you and other people that have -signed the CLA can be accepted into the main repository. - -Please fill out either the individual or corporate Contributor License Agreement (CLA). -* If you are an individual writing original source code and you're sure you own the - intellectual property, then you'll need to sign an [individual CLA](/assets/cla/individual_cla.md). -* If you work for a company that wants to allow you to contribute your work, then - you'll need to sign a [corporate CLA](/assets/cla/corporate_cla.md). - -Follow either of the two links above to access the appropriate CLA. Next, -accept the CLA in the following way. - -For Individual CLA: -1. Review the Individual CLA provided in `assets/cla/individual_cla.md` -2. Consent to the CLA by adding your name and email address to - the `assets/cla/consent.yaml` file. - -For Corporate CLA: -1. Review the Corporate CLA provided in `assets/cla/corporate_cla.md` -2. Consent to the CLA by adding your name and email address, and business - name to the `assets/cla/consent.yaml` file. +Please see [`assets/cla/CLA.md`](assets/cla/CLA.md). ## Pull Request Checklist diff --git a/assets/cla/CLA.md b/assets/cla/CLA.md new file mode 100644 index 0000000..3d04ad4 --- /dev/null +++ b/assets/cla/CLA.md @@ -0,0 +1,154 @@ +# Contributor License Agreements + +I'd love to accept your pull request! Before I can take them, we have to jump a +couple of legal hurdles. + +***NOTE***: Only original source code from you and other people that have +signed the CLA can be accepted into the main repository. + +Please agree to either the individual or corporate Contributor License Agreement (CLA). + + +## Table of Contents + +* [Individual Contributor License Agreement](#individual-contributor-license-agreement) + * [Definitions](#definitions) + * [Grant of Copyright License](#grant-of-copyright-license) + * [Grant of Patent License](#grant-of-patent-license) + * [Miscellaneous](#miscellaneous) +* [Corporate Contributor License Agreement](#corporate-contributor-license-agreement) + * [Definitions](#definitions-1) + * [Grant of Copyright License](#grant-of-copyright-license-1) + * [Grant of Patent License](#grant-of-patent-license-1) + * [Miscellaneous](#miscellaneous-1) + + + +## Individual Contributor License Agreement + +In order to clarify the intellectual property license granted with Contributions from +any person or entity, Paul Greenberg ("Project Owner") must have a Contributor License +Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement +to the license terms below. This license is for your protection as a Contributor as well +as the protection of Project Owner; it does not change your rights to use your own +Contributions for any other purpose. + +You accept and agree to the following terms and conditions for Your present and future +Contributions submitted to Project Owner. Except for the license granted herein to +Project Owner and recipients of software distributed by Project Owner, You reserve +all right, title, and interest in and to Your Contributions. + +### Definitions + +"You" (or "Your") shall mean the copyright owner or legal entity authorized by +the copyright owner that is making this Agreement with Project Owner. For legal +entities, the entity making a Contribution and all other entities that control, are +controlled by, or are under common control with that entity are considered to be a single +Contributor. For the purposes of this definition, "control" means (i) the power, direct +or indirect, to cause the direction or management of such entity, whether by contract +or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding +shares, or (iii) beneficial ownership of such entity. + +"Contribution" shall mean any original work of authorship, including any modifications +or additions to an existing work, that is intentionally submitted by You to Project +Owner for inclusion in, or documentation of, any of the products owned or managed by +Project Owner (the "Work"). For the purposes of this definition, "submitted" means any +form of electronic, verbal, or written communication sent to Project Owner or its +representatives, including but not limited to communication on electronic mailing lists, +source code control systems, and issue tracking systems that are managed by, or on +behalf of, Project Owner for the purpose of discussing and improving the Work, but +excluding communication that is conspicuously marked or otherwise designated in writing +by You as "Not a Contribution." + +### Grant of Copyright License + +Subject to the terms and conditions of this Agreement, You hereby grant to Project +Owner and to recipients of software distributed by Project Owner a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license +to reproduce, prepare derivative works of, publicly display, publicly perform, +sublicense, and distribute Your Contributions and such derivative works. + +### Grant of Patent License + +Subject to the terms and conditions of this Agreement, You hereby grant to Project +Owner and to recipients of software distributed by Project Owner a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in +this section) patent license to make, have made, use, offer to sell, sell, import, +and otherwise transfer the Work, where such license applies only to those patent +claims licensable by You that are necessarily infringed by Your Contribution(s) +alone or by combination of Your Contribution(s) with the Work to which such +Contribution(s) was submitted. If any entity institutes patent litigation against +You or any other entity (including a cross-claim or counterclaim in a lawsuit) +alleging that your Contribution, or the Work to which you have contributed, +constitutes direct or contributory patent infringement, then any patent licenses +granted to that entity under this Agreement for that Contribution or Work shall +terminate as of the date such litigation is filed. + +### Miscellaneous + +1. You represent that you are legally entitled to grant the above license. If your +employer(s) has rights to intellectual property that you create that includes +your Contributions, you represent that you have received permission to make +Contributions on behalf of that employer, that your employer has waived such +rights for your Contributions to Project Owner, or that your employer has +executed a separate Corporate CLA with Project Owner. + +2. You represent that each of Your Contributions is Your original creation +(see section 4 for submissions on behalf of others). You represent that Your +Contribution submissions include complete details of any third-party license +or other restriction (including, but not limited to, related patents and trademarks) +of which you are personally aware and which are associated with any part of Your +Contributions. + +3. You are not expected to provide support for Your Contributions, except to +the extent You desire to provide support. You may provide support for free, +for a fee, or not at all. Unless required by applicable law or agreed to in +writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied, including, without +limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, +MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. + +4. Should You wish to submit work that is not Your original creation, You may +submit it to Project Owner separately from any Contribution, identifying the +complete details of its source and of any license or other restriction (including, +but not limited to, related patents, trademarks, and license agreements) of +which you are personally aware, and conspicuously marking the work as +"Submitted on behalf of a third-party: [named here]". + +5. You agree to notify Project Owner of any facts or circumstances of +which you become aware that would make these representations inaccurate +in any respect. + +## Corporate Contributor License Agreement + +In order to clarify the intellectual property license granted with Contributions from any person or entity, Paul Greenberg ("Project Owner") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Project Owner and its users; it does not change your rights to use your own Contributions for any other purpose. + +This version of the Agreement allows an entity (the "Corporation") to submit Contributions to Project Owner, to authorize Contributions submitted by its designated employees to Project Owner, and to grant copyright and patent licenses thereto. + +You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Project Owner. Except for the license granted herein to Project Owner and recipients of software distributed by Project Owner, You reserve all right, title, and interest in and to Your Contributions. + +### Definitions + +"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Project Owner. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"Contribution" shall mean the code, documentation or any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Project Owner for inclusion in, or documentation of, any of the products owned or managed by Project Owner (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Project Owner or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Project Owner for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." + +### Grant of Copyright License + +Subject to the terms and conditions of this Agreement, You hereby grant to Project Owner and to recipients of software distributed by Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works. + +### Grant of Patent License + +Subject to the terms and conditions of this Agreement, You hereby grant to Project Owner and to recipients of software distributed by Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed. + +### Miscellaneous + +1. You represent that You are legally entitled to grant the above license. You represent further that each employee of the Corporation designated by You is authorized to submit Contributions on behalf of the Corporation. + +2. You represent that each of Your Contributions is Your original creation (see section 4 for submissions on behalf of others). + +3. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. + +4. Should You wish to submit work that is not Your original creation, You may submit it to Project Owner separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]". + +5. It is your responsibility to notify Project Owner when any change is required to the list of designated employees authorized to submit Contributions on behalf of the Corporation, or to the Corporation's Point of Contact with Project Owner. diff --git a/assets/cla/corporate_cla.md b/assets/cla/corporate_cla.md deleted file mode 100644 index 55feadf..0000000 --- a/assets/cla/corporate_cla.md +++ /dev/null @@ -1,33 +0,0 @@ -# Corporate Contributor License Agreement - -In order to clarify the intellectual property license granted with Contributions from any person or entity, Paul Greenberg ("Project Owner") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Project Owner and its users; it does not change your rights to use your own Contributions for any other purpose. - -This version of the Agreement allows an entity (the "Corporation") to submit Contributions to Project Owner, to authorize Contributions submitted by its designated employees to Project Owner, and to grant copyright and patent licenses thereto. - -You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Project Owner. Except for the license granted herein to Project Owner and recipients of software distributed by Project Owner, You reserve all right, title, and interest in and to Your Contributions. - -## Definitions - -"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Project Owner. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"Contribution" shall mean the code, documentation or any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Project Owner for inclusion in, or documentation of, any of the products owned or managed by Project Owner (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Project Owner or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Project Owner for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." - -## Grant of Copyright License - -Subject to the terms and conditions of this Agreement, You hereby grant to Project Owner and to recipients of software distributed by Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works. - -## Grant of Patent License - -Subject to the terms and conditions of this Agreement, You hereby grant to Project Owner and to recipients of software distributed by Project Owner a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed. - -## Miscellaneous - -1. You represent that You are legally entitled to grant the above license. You represent further that each employee of the Corporation designated by You is authorized to submit Contributions on behalf of the Corporation. - -2. You represent that each of Your Contributions is Your original creation (see section 4 for submissions on behalf of others). - -3. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. - -4. Should You wish to submit work that is not Your original creation, You may submit it to Project Owner separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]". - -5. It is your responsibility to notify Project Owner when any change is required to the list of designated employees authorized to submit Contributions on behalf of the Corporation, or to the Corporation's Point of Contact with Project Owner. diff --git a/assets/cla/individual_cla.md b/assets/cla/individual_cla.md deleted file mode 100644 index 5536809..0000000 --- a/assets/cla/individual_cla.md +++ /dev/null @@ -1,94 +0,0 @@ -# Individual Contributor License Agreement - -In order to clarify the intellectual property license granted with Contributions from -any person or entity, Paul Greenberg ("Project Owner") must have a Contributor License -Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement -to the license terms below. This license is for your protection as a Contributor as well -as the protection of Project Owner; it does not change your rights to use your own -Contributions for any other purpose. - -You accept and agree to the following terms and conditions for Your present and future -Contributions submitted to Project Owner. Except for the license granted herein to -Project Owner and recipients of software distributed by Project Owner, You reserve -all right, title, and interest in and to Your Contributions. - -## Definitions - -"You" (or "Your") shall mean the copyright owner or legal entity authorized by -the copyright owner that is making this Agreement with Project Owner. For legal -entities, the entity making a Contribution and all other entities that control, are -controlled by, or are under common control with that entity are considered to be a single -Contributor. For the purposes of this definition, "control" means (i) the power, direct -or indirect, to cause the direction or management of such entity, whether by contract -or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding -shares, or (iii) beneficial ownership of such entity. - -"Contribution" shall mean any original work of authorship, including any modifications -or additions to an existing work, that is intentionally submitted by You to Project -Owner for inclusion in, or documentation of, any of the products owned or managed by -Project Owner (the "Work"). For the purposes of this definition, "submitted" means any -form of electronic, verbal, or written communication sent to Project Owner or its -representatives, including but not limited to communication on electronic mailing lists, -source code control systems, and issue tracking systems that are managed by, or on -behalf of, Project Owner for the purpose of discussing and improving the Work, but -excluding communication that is conspicuously marked or otherwise designated in writing -by You as "Not a Contribution." - -## Grant of Copyright License - -Subject to the terms and conditions of this Agreement, You hereby grant to Project -Owner and to recipients of software distributed by Project Owner a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license -to reproduce, prepare derivative works of, publicly display, publicly perform, -sublicense, and distribute Your Contributions and such derivative works. - -## Grant of Patent License - -Subject to the terms and conditions of this Agreement, You hereby grant to Project -Owner and to recipients of software distributed by Project Owner a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in -this section) patent license to make, have made, use, offer to sell, sell, import, -and otherwise transfer the Work, where such license applies only to those patent -claims licensable by You that are necessarily infringed by Your Contribution(s) -alone or by combination of Your Contribution(s) with the Work to which such -Contribution(s) was submitted. If any entity institutes patent litigation against -You or any other entity (including a cross-claim or counterclaim in a lawsuit) -alleging that your Contribution, or the Work to which you have contributed, -constitutes direct or contributory patent infringement, then any patent licenses -granted to that entity under this Agreement for that Contribution or Work shall -terminate as of the date such litigation is filed. - -## Miscellaneous - -1. You represent that you are legally entitled to grant the above license. If your -employer(s) has rights to intellectual property that you create that includes -your Contributions, you represent that you have received permission to make -Contributions on behalf of that employer, that your employer has waived such -rights for your Contributions to Project Owner, or that your employer has -executed a separate Corporate CLA with Project Owner. - -2. You represent that each of Your Contributions is Your original creation -(see section 4 for submissions on behalf of others). You represent that Your -Contribution submissions include complete details of any third-party license -or other restriction (including, but not limited to, related patents and trademarks) -of which you are personally aware and which are associated with any part of Your -Contributions. - -3. You are not expected to provide support for Your Contributions, except to -the extent You desire to provide support. You may provide support for free, -for a fee, or not at all. Unless required by applicable law or agreed to in -writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied, including, without -limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, -MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. - -4. Should You wish to submit work that is not Your original creation, You may -submit it to Project Owner separately from any Contribution, identifying the -complete details of its source and of any license or other restriction (including, -but not limited to, related patents, trademarks, and license agreements) of -which you are personally aware, and conspicuously marking the work as -"Submitted on behalf of a third-party: [named here]". - -5. You agree to notify Project Owner of any facts or circumstances of -which you become aware that would make these representations inaccurate -in any respect.