diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 7646c5cfb..51d9ac2fb 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -23,10 +23,5 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Remove some files before checking REUSE compliance - run: | - rm -f tests/integration/targets/*/files/*.pem - rm -f tests/integration/targets/*/files/roots/*.pem - - name: REUSE Compliance Check uses: fsfe/reuse-action@v3 diff --git a/README.md b/README.md index 7e8136227..629857e31 100644 --- a/README.md +++ b/README.md @@ -144,4 +144,4 @@ See [LICENSES/GPL-3.0-or-later.txt](https://github.com/ansible-collections/commu Parts of the collection are licensed under the [Apache 2.0 license](https://github.com/ansible-collections/community.crypto/blob/main/LICENSES/Apache-2.0.txt) (`plugins/module_utils/crypto/_obj2txt.py` and `plugins/module_utils/crypto/_objects_data.py`), the [BSD 2-Clause license](https://github.com/ansible-collections/community.crypto/blob/main/LICENSES/BSD-2-Clause.txt) (`plugins/module_utils/ecs/api.py`), the [BSD 3-Clause license](https://github.com/ansible-collections/community.crypto/blob/main/LICENSES/BSD-3-Clause.txt) (`plugins/module_utils/crypto/_obj2txt.py`, `tests/integration/targets/prepare_jinja2_compat/filter_plugins/jinja_compatibility.py`), and the [PSF 2.0 license](https://github.com/ansible-collections/community.crypto/blob/main/LICENSES/PSF-2.0.txt) (`plugins/module_utils/_version.py`). This only applies to vendored files in ``plugins/module_utils/`` and to the ECS module utils. -Almost all files have a machine readable `SDPX-License-Identifier:` comment denoting its respective license(s) or an equivalent entry in an accompanying `.license` file. Only changelog fragments (which will not be part of a release) are covered by a blanket statement in `.reuse/dep5`. Right now a few vendored PEM files do not have licensing information as well. This conforms to the [REUSE specification](https://reuse.software/spec/) up to the aforementioned PEM files. +All files have a machine readable `SDPX-License-Identifier:` comment denoting its respective license(s) or an equivalent entry in an accompanying `.license` file. Only changelog fragments (which will not be part of a release) are covered by a blanket statement in `.reuse/dep5`. This conforms to the [REUSE specification](https://reuse.software/spec/). diff --git a/tests/integration/targets/certificate_complete_chain/files/cert1-chain.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert1-chain.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert1-chain.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert1-fullchain.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert1-fullchain.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert1-fullchain.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert1-root.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert1-root.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert1-root.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert1.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert1.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert1.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2-altchain.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2-altchain.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2-altchain.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2-altroot.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2-altroot.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2-altroot.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2-chain.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2-chain.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2-chain.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2-fullchain.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2-fullchain.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2-fullchain.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2-root.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2-root.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2-root.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/cert2.pem.license b/tests/integration/targets/certificate_complete_chain/files/cert2.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/cert2.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_Certification_Authority.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_Certification_Authority.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_Certification_Authority.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_ECC_Certification_Authority.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_ECC_Certification_Authority.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_ECC_Certification_Authority.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_RSA_Certification_Authority.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_RSA_Certification_Authority.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots/COMODO_RSA_Certification_Authority.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots/DST_Root_CA_X3.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots/DST_Root_CA_X3.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots/DST_Root_CA_X3.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/certificate_complete_chain/files/roots/ISRG_Root_X1.pem.license b/tests/integration/targets/certificate_complete_chain/files/roots/ISRG_Root_X1.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/certificate_complete_chain/files/roots/ISRG_Root_X1.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/integration/targets/x509_certificate_info/files/cert1.pem.license b/tests/integration/targets/x509_certificate_info/files/cert1.pem.license new file mode 100644 index 000000000..edff8c768 --- /dev/null +++ b/tests/integration/targets/x509_certificate_info/files/cert1.pem.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/sanity/extra/licenses.py b/tests/sanity/extra/licenses.py index 9eb3cc9ec..80eb795ef 100755 --- a/tests/sanity/extra/licenses.py +++ b/tests/sanity/extra/licenses.py @@ -76,8 +76,6 @@ def main(): '.reuse/dep5', 'LICENSES/*.txt', 'COPYING', - 'tests/integration/targets/*/files/*.pem', - 'tests/integration/targets/*/files/roots/*.pem', ] no_comments_allowed = [fn for pattern in no_comments_allowed for fn in glob.glob(pattern)]