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
4 changes: 4 additions & 0 deletions .github/check-spdx-headers.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ rules:
headers:
- files:
- "templates/.github/**/*.yml"
- "templates/check-license-compliance-configs/*.yml"
license:
- "MIT"
copyright: "<%= year %> <%= copyrightHolder %>"
Expand Down Expand Up @@ -48,6 +49,9 @@ rules:
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital and contributors"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica"
ignore:
- "templates/.github/**/*.yml"
- "templates/check-license-compliance-configs/*.yml"
ignore:
- "**/node_modules/**"
- "dist/**"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.1.0] - 2025-02-04

### Added

* feat: Generate different `check-license-compliance` configurations based on the license type

### Changed

* feat: Bump `check-license-compliance` to v2. Update the action configuration accordingly
* chore: Bump `check-spdx-headers` action to version v1

## [1.0.1] - 2025-01-21

Expand Down
1 change: 1 addition & 0 deletions cspell/tech.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ELIFECYCLE
OBSD
opensource
renovatebot
2 changes: 1 addition & 1 deletion dist-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42954,7 +42954,7 @@ const RESOURCES = [
{
name: "Check license compliance config",
path: ".github/check-license-compliance.config.yml",
origin: "templates/.github/check-license-compliance.config.yml",
origin: "templates/check-license-compliance-configs/<%= license %>.yml",
},
{
name: "Check SPDX headers config",
Expand Down
2 changes: 1 addition & 1 deletion dist-action/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const RESOURCES: Resource[] = [
{
name: "Check license compliance config",
path: ".github/check-license-compliance.config.yml",
origin: "templates/.github/check-license-compliance.config.yml",
origin: "templates/check-license-compliance-configs/<%= license %>.yml",
},
{
name: "Check SPDX headers config",
Expand Down
20 changes: 0 additions & 20 deletions templates/.github/check-license-compliance.config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions templates/check-license-compliance-configs/AGPL-3.0-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: <%= year %> <%= copyrightHolder %>
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- OBSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- CC0-1.0
- MPL-2.0
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
forbidden:
- MPL-1.1
- EPL-1.0
- Python-2.0
- GPL-2.0-only
39 changes: 39 additions & 0 deletions templates/check-license-compliance-configs/AGPL-3.0-or-later.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: <%= year %> <%= copyrightHolder %>
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- OBSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- CC0-1.0
- MPL-2.0
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
forbidden:
- MPL-1.1
- EPL-1.0
- Python-2.0
- GPL-2.0-only
40 changes: 40 additions & 0 deletions templates/check-license-compliance-configs/Apache-2.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: <%= year %> <%= copyrightHolder %>
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- OBSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- CC0-1.0
- Python-2.0
warning:
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- MPL-1.1
- MPL-2.0
- EPL-1.0
forbidden:
- GPL-2.0-only
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
40 changes: 40 additions & 0 deletions templates/check-license-compliance-configs/MIT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: <%= year %> <%= copyrightHolder %>
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- OBSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- CC0-1.0
- Python-2.0
warning:
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- MPL-1.1
- MPL-2.0
- EPL-1.0
forbidden:
- GPL-2.0-only
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
40 changes: 40 additions & 0 deletions templates/check-license-compliance-configs/MPL-2.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: <%= year %> <%= copyrightHolder %>
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- OBSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- CC0-1.0
- Python-2.0
- MPL-1.1
- MPL-2.0
warning:
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- EPL-1.0
forbidden:
- GPL-2.0-only
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
Loading