How revylai/greenlight works
Greenlight is a mobile-app store compliance scanner: its main workflow runs applicable static checks over project source and optional build artifacts, combines findings, then formats a report and CI gate result. The README also documents App Store Connect metadata checks and an optional cloud-device verification tier. Edges below follow sampled calls or explicit README descriptions; several scanner internals and CLI wiring are not shown, so their relations are omitted where unsupported.
Main entry points: preflight/runner.go Static scan orchestrator · verify/runner.go Flow verification runner · scanner.go Android policy scan · preflight.go Preflight command
Components 26
CLI entry
- Executable entry
cmd/greenlight/main.go - Command interface
internal/cli/root.go - Preflight command
internal/cli/preflight.go - Codescan command
internal/cli/codescan.go - Playscan command
internal/cli/playscan.go - Authentication commands
internal/cli/auth.go - Verify command
internal/cli/verify.go
Offline compliance
- Static scan orchestrator
internal/preflight/runner.go - Local metadata checks
internal/preflight/metadata.go - Source rules scan
internal/codescan/scanner.go - Privacy manifest scan
internal/privacy/scanner.go - Android policy scan
internal/playscan/scanner.go - Android archive analysis
internal/playscan/archive.go - IPA inspection
internal/ipa/inspect.go
Apple Connect checks
- App Store check runner
internal/checks/runner.go - Metadata and content checks
internal/checks/tier1_metadata.go - App Store Connect client
internal/asc/client.go
Runtime verification
- Flow verification runner
internal/verify/runner.go - Flow definitions
internal/verify/flows.go - Revyl device service
internal/revyl/client.go
Findings and reports
- Unified findings
internal/preflight/runner.go - Static report output
internal/cli/preflight.go - SARIF encoding
internal/sarif/sarif.go
Other components
- App developer
- App project
- App Store Connect
Connections 34
- App developer → Executable entry: runs
cmd/greenlight/main.go - Executable entry → Command interface: executes
cmd/greenlight/main.go - App developer → Preflight command: requests scan
- Preflight command → Static scan orchestrator: runs
internal/cli/preflight.go - Preflight command → Flow verification runner: optionally runs
internal/cli/preflight.go - App developer → Codescan command: requests scan
- Codescan command → Source rules scan: invokes
internal/cli/codescan.go - App developer → Playscan command: requests scan
- Playscan command → Android policy scan: invokes
internal/cli/playscan.go - App developer → Authentication commands: manages access
internal/cli/auth.go - Authentication commands → App Store Connect client: authenticates
internal/cli/auth.go - App project → Static scan orchestrator: scans
- Static scan orchestrator → Local metadata checks: runs
internal/preflight/runner.go - Static scan orchestrator → Source rules scan: runs
internal/preflight/runner.go - Static scan orchestrator → Privacy manifest scan: runs
internal/preflight/runner.go - Static scan orchestrator → Android policy scan: runs
internal/preflight/runner.go - Static scan orchestrator → IPA inspection: runs
internal/preflight/runner.go - App project → Source rules scan: provides source
- App project → Privacy manifest scan: provides manifests
- App project → Android policy scan: provides Android inputs
- App project → Android archive analysis: provides optional archive
- Android policy scan → Android archive analysis: analyzes archive
- Static scan orchestrator → Unified findings: aggregates
internal/preflight/runner.go - App project → App Store check runner: checks submission
- App Store check runner → Metadata and content checks: executes
internal/checks/runner.go - Metadata and content checks → App Store Connect client: queries metadata
- App Store Connect client → App Store Connect: requests data
- Unified findings → Static report output: formats
internal/cli/preflight.go - Static report output → SARIF encoding: encodes SARIF
internal/cli/preflight.go - App developer → Verify command: requests verification
- Verify command → Flow verification runner: runs
internal/cli/verify.go - Flow verification runner → Flow definitions: selects flows
internal/verify/flows.go - Flow verification runner → Revyl device service: dispatches device runs
internal/verify/runner.go - App project → Flow verification runner: supplies app
internal/verify/runner.go