Skip to content

fix: allow the parenthesized (Apache-2.0 AND MIT) SPDX expression - #181

Merged
adamwalach merged 2 commits into
masterfrom
fix/allow-parenthesized-apache2-mit-license
Aug 20, 2026
Merged

fix: allow the parenthesized (Apache-2.0 AND MIT) SPDX expression#181
adamwalach merged 2 commits into
masterfrom
fix/allow-parenthesized-apache2-mit-license

Conversation

@adamwalach

@adamwalach adamwalach commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow the parenthesized (Apache-2.0 AND MIT) SPDX expression in the license allow-list; the unparenthesized form was already allowed, but the exact-string match rejected the parenthesized variant that posthog-js@1.415.1 declares
  • bump the ORY_CI_REF asset pin in licenses/install to the commit containing the fix, so curl-install consumers receive it

This fixes the nightly Validation - Licenses workflow

Please merge with a merge commit (not squash) so the pinned SHA 915e79fc0d3dfca87bdfcb19485db8a84d8c9e6b is an ancestor of master.

Verification

  • make test in licenses/ (ShellCheck + shfmt) passes
  • the updated engine accepts "posthog-js@1.415.1","(Apache-2.0 AND MIT)" and still rejects GPL-3.0 and superset expressions such as (Apache-2.0 AND MIT AND GPL-3.0)
  • end-to-end: ran licenses/install from this branch in an empty directory; it downloads the engine at the new pin and the check passes on the posthog-js line

posthog-js declares its license as "(Apache-2.0 AND MIT)". The allow-list
only contained the unparenthesized form, so the exact-string match
rejected it even though both licenses are individually allowed.
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a8bc511c-5cc2-4813-a631-b2d30aa75333


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tricky42
tricky42 self-requested a review August 20, 2026 11:48
@adamwalach
adamwalach merged commit 47a0f88 into master Aug 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants