diff options
| author | Bryan Thompson <238056179+bryan-anthropic@users.noreply.github.com> | 2026-08-06 18:35:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-06 18:35:01 -0500 |
| commit | d72880f9c858cf267eadbde34d57ffb87a0fc68e (patch) | |
| tree | f99c9dca86d1c2b6a6b455a28544f56c53e857cd /.github/workflows | |
| parent | 13b21ea076ed59d2cc584f10a2e8f46acb309e20 (diff) | |
ci(validate-licenses): exempt intentionally-proprietary claude-security from the Apache-2.0 content check (#4942)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/validate-licenses.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/validate-licenses.yml b/.github/workflows/validate-licenses.yml index 8376578c..63703a83 100644 --- a/.github/workflows/validate-licenses.yml +++ b/.github/workflows/validate-licenses.yml @@ -21,12 +21,18 @@ jobs: - name: Check every plugin has an Apache 2.0 LICENSE file run: | set -euo pipefail + # Plugins that intentionally ship a non-Apache LICENSE. claude-security + # is deliberately proprietary (see #4427 — replacement rejected); it is + # exempt from the Apache 2.0 content check but must still ship a LICENSE. + exempt=("plugins/claude-security") missing=() wrong_content=() for plugin_dir in plugins/*/; do plugin="${plugin_dir%/}" if [[ ! -f "$plugin/LICENSE" ]]; then missing+=("$plugin") + elif [[ " ${exempt[*]} " == *" $plugin "* ]]; then + : # intentionally non-Apache — LICENSE presence already verified elif ! grep -q "Apache License" "$plugin/LICENSE" || \ ! grep -q "Version 2.0" "$plugin/LICENSE"; then wrong_content+=("$plugin") @@ -46,4 +52,4 @@ jobs: done exit 1 fi - echo "All $(ls -d plugins/*/ | wc -l) plugins have an Apache 2.0 LICENSE file." + echo "All $(ls -d plugins/*/ | wc -l) plugins have a LICENSE file (Apache 2.0 except documented exemptions)." |
