greenlight

Know before you submit. Pre-submission compliance scanner for the Apple App Store and Google Play.
Greenlight reads your app (source code, privacy manifests, Android manifests and Gradle builds, IPA binaries, App Store Connect metadata) and checks it against Apple's Review Guidelines and Google Play's Developer Program Policies. Every finding cites the rule it comes from. No account, no uploads, no network. A full preflight on a mid-size project finishes in single-digit milliseconds.
A static scan can only prove a flow exists. greenlight verify proves it works: it runs your account-deletion, restore-purchases, and Sign in with Apple flows on a cloud device and fails the build if any of them dead-ends. That tier is powered by Revyl and needs a free account. Everything else on this page runs offline. See greenlight verify.
Install
# Homebrew (macOS)
brew install revylai/tap/greenlight
# Go
go install github.com/RevylAI/greenlight/cmd/greenlight@latest
# Build from source
git clone https://github.com/RevylAI/greenlight.git
cd greenlight && make build
# Binary at: build/greenlight
Quick start
# Everything, one command, zero uploads
greenlight preflight /path/to/your/project
# Include an IPA for binary analysis
greenlight preflight . --ipa build.ipa
# Gate CI on it
greenlight preflight . --exit-code
Severity
Four levels. The top two fail a CI gate; the bottom two are advisory.
| Level | Meaning |
|---|
| CRITICAL | Rejection or install failure is near-certain. Fix before you submit. |
| HIGH | A published deadline, a required declaration, or a check that fails at runtime. |
| WARN | Likely to draw reviewer attention or an information request. |
| INFO | Best practice. |
--exit-code trips on CRITICAL and HIGH, and on a scanner that crashed, so an incomplete scan never reports as a pass.
Commands
greenlight preflight [path]
Runs every applicable scanner in parallel. Android and iOS projects in one repo are both picked up, so a cross-platform app is checked against both stores in a single pass.
greenlight preflight . # scan current directory
greenlight preflight ./my-app --ipa build.ipa # with binary inspection
greenlight preflight . --format json # JSON for CI
greenlight preflight . --format sarif --output greenlight.sarif
greenlight preflight . --exit-code # non-zero on CRITICAL/HIGH
| Scanner | Checks |
|---|
| metadata | app.json / Info.plist: name, version, bundle ID format, icon, privacy policy URL, purpose strings |
| codescan | 24 rules over Swift, Objective-C, React Native, and Expo source |
| privacy | PrivacyInfo.xcprivacy completeness, Required Reason APIs, tracking SDKs vs ATT |
| playscan | Google Play policy, target API deadline, restricted permissions, foreground service types, Play Billing version (Android projects only) |
| ipa | Binary: Info.plist keys, launch storyboard, icons, app size, framework privacy manifests |
Adding --verify extends the same command into the runtime tier, so one invocation covers static and runtime:
greenlight preflight . --verify --build-name "My App" \
--var [email protected] --var password=secret --exit-code
--verify accepts the same targeting flags as the standalone command: --artifact, --build-name, --device-model, --os-version, --var.
greenlight codescan [path]
greenlight codescan /path/to/project
greenlight codescan . --config path/to/.greenlight.yml
24 rules, roughly 60 patterns, over Swift, Objective-C, React Native, and Expo.
CRITICAL:
- Private API usage (§2.5.1)
- Hardcoded secrets and API keys (§1.6)
- External payment for digital goods (§3.1.1)
- Dynamic code execution (§2.5.2)
- Cryptocurrency mining (§3.1.5)
- UIWebView, a removed API and a hard rejection (§2.5.1)
HIGH:
- Missing Sign in with Apple alongside social login (§4.8)
- Missing Restore Purchases with IAP (§3.1.1)
- Missing ATT with ad or tracking SDKs (§5.1.2)
- Account creation with no deletion path (§5.1.1)
- A crypto exchange or on-ramp SDK, which usually needs licensing or a legal opinion (§3.1.5(b))
WARN: