3 Commits

Author SHA1 Message Date
ethan zhou
07320cb849 Address code review: don't go silent when icons are in Assets.car
When a compiled Assets.car is present but no loose AppIcon*.png, the no-icon
CRITICAL was fully suppressed — but greenlight can't decode Assets.car to confirm
an AppIcon set actually exists, so an icon-less catalog passed silently. Emit an
INFO in that case instead (still no false CRITICAL on the common asset-catalog
app, but the recall gap is surfaced). Test asserts the INFO.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 15:29:21 -07:00
ethan zhou
f112d33570 Parse IPA plists for real (binary + XML) instead of string-matching
Tier 2 feature. The IPA inspector read Info.plist / PrivacyInfo.xcprivacy as a
string and grepped for keys. Production builds ship BINARY plists (bplist00), so
the empty-purpose-string and ATS checks were dead, the bundle id was never
extracted, and version/icon checks false-fired on essentially every real IPA.

- Parse both plists with howett.net/plist (auto-detects binary vs XML) into a
  map; read CFBundleIdentifier, version keys, NSAppTransportSecurity, and the
  usage-description strings from actual values.
- Read zip entries with io.ReadAll under a 16 MiB cap instead of a single
  rc.Read into a header-sized buffer (the old read truncated Deflate'd entries
  and trusted UncompressedSize64 -- a decompression-bomb vector).
- Treat a compiled Assets.car as a valid icon source, so apps whose icons live
  in the asset catalog no longer get a false "No app icon" CRITICAL.
- Only warn about CFBundleDisplayName when CFBundleName is also absent; simplify
  the framework privacy-manifest path; drop dead arch-detection code.
- Tests build in-memory IPAs with binary and XML plist fixtures.

Adds howett.net/plist v1.0.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 14:18:27 -07:00
Landseer100
fc68ef1ce3 Initial release: standalone greenlight CLI
Pre-submission compliance scanner for the Apple App Store.

Fixes:
- Implement antiPatternsGlobal two-pass scanning (rules like missing-att,
  social-login-no-apple now correctly check anti-patterns across all project
  files instead of only the current file)
- Remove dead printFooter() in scan.go (handled by report.go)
- Remove no-op checkAppIconExists() (icon checks handled by app.json parser)
- Fix all go vet warnings (redundant newlines in Println calls)

Adds MIT license, CI workflow, and updated .gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 14:54:57 -08:00