Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions modules/github/license_files/licenses/ee-sagittarius.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright 2023-2026 Code0 UG (haftungsbeschränkt) i.G.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to use the Software for personal and non-commercial purposes only. For the purposes of this license, personal use is strictly defined as the individual use of the Software by a natural person for private, and non-commercial projects where no financial gain is sought. This permission includes the rights to use, copy, modify, and merge the Software for such individual purposes.

Any and all use of the Software or its source code that does not strictly conform to the aforementioned definition of personal use is classified as commercial or professional use and requires a valid Code0 Enterprise Edition (EE) License for the correct number of user seats issued by the Copyright Holder. This requirement applies without limitation to use within a commercial entity, use for professional services, or use as part of any revenue-generating product or service.

All content located within the "/extensions/ee" directory, if that directory exists, specifically and exclusively requires a valid Code0 Enterprise Edition (EE) License for the correct number of user seats, regardless of the user's intent or status.

All content located within the "/extensions/cloud" directory, if that directory exists, is reserved for the exclusive use of the Copyright Holder.

Notwithstanding the permissions granted above, this Software and its source code may not be used, in whole or in part, for the purpose of training, fine-tuning, or developing artificial intelligence (AI) models or machine learning algorithms without prior written consent from the Copyright Holder.

This License shall be governed by and construed in accordance with the laws of Germany. Any disputes arising out of or in connection with this License shall be subject to the exclusive jurisdiction of the courts in Solingen, Germany.

This copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. This requirement applies to any and all distributions, modifications, or merged versions of the Software to ensure the continued application of these terms.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17 changes: 17 additions & 0 deletions modules/github/license_files/licenses/ee-sculptor.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright 2023-2026 Code0 UG (haftungsbeschränkt) i.G.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to use the Software for personal and non-commercial purposes only. For the purposes of this license, personal use is strictly defined as the individual use of the Software by a natural person for private, and non-commercial projects where no financial gain is sought. This permission includes the rights to use, copy, modify, and merge the Software for such individual purposes.

Any and all use of the Software or its source code that does not strictly conform to the aforementioned definition of personal use is classified as commercial or professional use and requires a valid Code0 Enterprise Edition (EE) License for the correct number of user seats issued by the Copyright Holder. This requirement applies without limitation to use within a commercial entity, use for professional services, or use as part of any revenue-generating product or service.

All content located within the "/src/packages/ee" directory, if that directory exists, specifically and exclusively requires a valid Code0 Enterprise Edition (EE) License for the correct number of user seats, regardless of the user's intent or status.

All content located within the "/src/packages/cloud" directory, if that directory exists, is reserved for the exclusive use of the Copyright Holder.

Notwithstanding the permissions granted above, this Software and its source code may not be used, in whole or in part, for the purpose of training, fine-tuning, or developing artificial intelligence (AI) models or machine learning algorithms without prior written consent from the Copyright Holder.

This License shall be governed by and construed in accordance with the laws of Germany. Any disputes arising out of or in connection with this License shall be subject to the exclusive jurisdiction of the courts in Solingen, Germany.

This copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. This requirement applies to any and all distributions, modifications, or merged versions of the Software to ensure the continued application of these terms.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13 changes: 13 additions & 0 deletions modules/github/license_files/licenses/ee.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2023-2026 Code0 UG (haftungsbeschränkt) i.G.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to use the Software for personal and non-commercial purposes only. For the purposes of this license, personal use is strictly defined as the individual use of the Software by a natural person for private, and non-commercial projects where no financial gain is sought. This permission includes the rights to use, copy, modify, and merge the Software for such individual purposes.

Any and all use of the Software or its source code that does not strictly conform to the aforementioned definition of personal use is classified as commercial or professional use and requires a valid Code0 Enterprise Edition (EE) License for the correct number of user seats issued by the Copyright Holder. This requirement applies without limitation to use within a commercial entity, use for professional services, or use as part of any revenue-generating product or service.

Notwithstanding the permissions granted above, this Software and its source code may not be used, in whole or in part, for the purpose of training, fine-tuning, or developing artificial intelligence (AI) models or machine learning algorithms without prior written consent from the Copyright Holder.

This License shall be governed by and construed in accordance with the laws of Germany. Any disputes arising out of or in connection with this License shall be subject to the exclusive jurisdiction of the courts in Solingen, Germany.

This copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. This requirement applies to any and all distributions, modifications, or merged versions of the Software to ensure the continued application of these terms.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright 2023-2026 Code0 UG (haftungsbeschränkt) i.G.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

AI Usage Restriction: Notwithstanding the permissions granted above, this Software and its source code may not be used, in whole or in part, for the purpose of training, fine-tuning, or developing artificial intelligence (AI) models or machine learning algorithms without prior written consent from the Copyright Holder.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions modules/github/license_files/licenses/mit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2023-2026 Code0 UG (haftungsbeschränkt) i.G.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48 changes: 48 additions & 0 deletions modules/github/license_files/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
terraform {
required_providers {
github = {
source = "integrations/github"
version = "6.11.1"
}
}
}

locals {
license_mappings = {
"aquila" = "ee"
"code0-definition" = "mit"
"code0-flow" = "mit-with-ai-restriction"
"code0-identities" = "mit-with-ai-restriction"
"code0-license" = "mit-with-ai-restriction"
"code0-zero_track" = "mit-with-ai-restriction"
"cygnus" = "mit"
"draco" = "ee"
"hercules" = "mit"
"lacerta" = "mit"
"pictor" = "mit"
"reticulum" = "ee"
"sagittarius" = "ee-sagittarius"
"sculptor" = "ee-sculptor"
"taurus" = "ee"
"telescopium" = "mit"
"triangulum" = "mit-with-ai-restriction"
"tucana" = "mit-with-ai-restriction"
"codezero" = "ee"
}
}

data "github_repository" "repository" {
for_each = local.license_mappings

name = each.key
}

resource "github_repository_file" "license" {
for_each = local.license_mappings
repository = each.key
branch = data.github_repository.repository[each.key].default_branch
file = "LICENSE"
content = file("${path.module}/licenses/${each.value}.txt")
commit_message = "Update LICENSE file"
overwrite_on_create = true
}
4 changes: 4 additions & 0 deletions system/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module "release_tools_configs" {
source = "../../modules/github/release_tools_configs"
}

module "licenses" {
source = "../../modules/github/license_files"
}

data "gitlab_project_variable" "github_public_discord_webhook_url" {
project = "code0-tech/secret-manager"
key = "GITHUB_PUBLIC_DISCORD_WEBHOOK_URL"
Expand Down