Skip to content

Commit 881761b

Browse files
jeffpauldkotter
andauthored
Merge pull request WordPress#81 from WordPress/add/dependency-check
Add/dependency check Co-authored-by: dkotter <dkotter@git.wordpress.org>
2 parents 2b9dde0 + e446add commit 881761b

3 files changed

Lines changed: 86 additions & 1 deletion

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: GPL-Compatible License Policy
2+
3+
# Possible values: "critical", "high", "moderate", "low"
4+
# fail-on-severity: critical
5+
6+
# You can only include one of these two options: `allow-licenses` and `deny-licences`
7+
8+
# ([String]). Only allow these licenses (optional)
9+
# Possible values: Any `spdx_id` value(s) from https://docs.github.com/en/rest/licenses
10+
# The following list is an attempt to match exactly what's listed on https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses as GPL Compatible (currently ignoring the FSF Free/Libre and OSI Approved column data from the SPDX License List at https://spdx.org/licenses/):
11+
allow-licenses:
12+
- 0BSD
13+
- AGPL-3.0
14+
- AGPL-3.0-only
15+
- Apache-2.0
16+
- Apache-2.0 AND Apache-2.0 WITH LLVM-exception
17+
- Apache-2.0 WITH LLVM-exception
18+
- Artistic-2.0
19+
- BSD-2-Clause
20+
- BSD-3-Clause
21+
- BSL-1.0
22+
- CC-BY-4.0
23+
- ECL-2.0
24+
- EFL-2.0
25+
- EUDatagrid
26+
- GPL-2.0
27+
- GPL-2.0-only
28+
- GPL-2.0-or-later
29+
- GPL-3.0
30+
- GPL-3.0-only
31+
- GPL-3.0-or-later
32+
- HPND
33+
- Intel
34+
- ISC
35+
- LGPL-3.0
36+
- LGPL-3.0-only
37+
- LGPL-2.1
38+
- LGPL-2.1-only
39+
- MIT
40+
- MPL-2.0
41+
- NCSA
42+
- Sleepycat
43+
- Unlicense
44+
- UPL-1.0
45+
- W3C
46+
- Zlib
47+
- ZPL-2.0
48+
# The following licenses fit the above criteria except they are not marked as FSF Free/Libre on the SPDX License List (https://spdx.org/licenses/): Unicode-DFS-2016
49+
# The following licenses fit the above criteria except they are not marked as OSI Approved on the SPDX License List (https://spdx.org/licenses/): ClArtistic, CECILL-2.0, BSD-3-Clause-Clear, FTL, iMatix, Imlib2, IJG, OLDAP-2.7, Ruby, SGI-B-2.0, SMLNJ, Vim, WTFPL, X11, XFree86-1.1
50+
51+
# ([String]). Block the pull request on these licenses (optional)
52+
# Possible values: Any `spdx_id` value(s) from https://docs.github.com/en/rest/licenses
53+
# The following list is an attempt to match exactly what's listed on https://www.gnu.org/licenses/license-list.html#GPLIncompatibleLicenses as GPL Incompatible:
54+
# deny-licenses: AGPL-1.0, AGPL-1.0-only, AFL-1.1, AFL-1.2, AFL-2.0, AFL-2.1, AFL-3.0, Apache-1.1, Apache-1.0, APSL-2.0, BitTorrent-1.0, BSD-4-Clause, CECILL-B, CECILL-C, CDDL-1.0, CPAL-1.0, CPL-1.0, Condor-1.1, EPL-1.0, EPL-2.0, EUPL-1.1, EUPL-1.2, FDK-AAC, gnuplot, IPL-1.0, LPPL-1.3a, LPPL-1.2, LPL-1.02, MS-PL, MS-RL, MPL-1.1, NOSL, NPL-1.0, NPL-1.1, Nokia, OLDAP-2.3, OSL-1.0, OSL-1.1, OSL-2.0, OSL-2.1, OSL-3.0, OpenSSL, PHP-3.01, Python-2.0, QPL-1.0, RPSL-1.0, SISSL, SPL-1.0, xinetd, YPL-1.1, Zend-2.0, Zimbra-1.3, ZPL-1.1
55+
# The following list is an attempt, additionally, to match exactly what's listedn on https://www.gnu.org/licenses/license-list.html#NonFreeSoftwareLicenses as Nonfree: Aladdin, APSL-1.0, APSL-1.1, APSL-1.2, Artistic-1.0, CPOL-1.02, RHeCos-1.1, JSON, NASA-1.3, OPL-1.0, RPL-1.1, Watcom-1.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: Dependency Review
8+
9+
on: [pull_request]
10+
11+
# Disable permissions for all available scopes by default.
12+
# Any needed permissions should be configured at the job level.
13+
permissions: {}
14+
15+
jobs:
16+
dependency-review:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
steps:
21+
- name: Checkout Repository
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
24+
- name: Dependency Review
25+
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2
26+
with:
27+
license-check: true
28+
vulnerability-check: false # Since we only want to use the license check, we need to set this to false as otherwise the default is true.
29+
show-openssf-scorecard: false # Since we only want to use the license check, we need to set this to false as otherwise the default is true.
30+
config-file: './.github/dependency-review-config.yml'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![AI Experiments](https://github.com/WordPress/ai/blob/trunk/.wordpress-org/banner-1544x500.png)
44

5-
[![GPL-2.0-or-later License](https://img.shields.io/github/license/WordPress/ai.svg)](https://github.com/WordPress/ai/blob/trunk/LICENSE.md) [![Test](https://github.com/WordPress/ai/actions/workflows/test.yml/badge.svg)](https://github.com/WordPress/ai/actions/workflows/test.yml)
5+
[![GPL-2.0-or-later License](https://img.shields.io/github/license/WordPress/ai.svg)](https://github.com/WordPress/ai/blob/trunk/LICENSE.md) [![Test](https://github.com/WordPress/ai/actions/workflows/test.yml/badge.svg)](https://github.com/WordPress/ai/actions/workflows/test.yml) [![Dependency Review](https://github.com/WordPress/ai/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/WordPress/ai/actions/workflows/dependency-review.yml)
66

77
> AI experiments for WordPress. Modular framework for testing AI capabilities.
88

0 commit comments

Comments
 (0)