iOS readiness, story 5. The nightly now also scans two public apps,
fetched at pinned commits like the Zephyr and CODESYS samples (not
committed; skipped where the env var is unset):
- nalexn/clean-architecture-swiftui (MIT): a current SwiftUI app (iOS 18,
Swift 5) with Swift packages but no Package.resolved;
- android/nowinandroid (Apache-2.0): a large current Android app with
version catalogs and two application modules (app, app-nia-catalog,
which become variants).
What they found, fixed here:
- mobsfscan failed on every SwiftUI app: semgrep reports a file it parses
only in part (newer Swift syntax) as an error object, which our report
type read as a string, so the whole sast_mobile stage was skipped as
"did not complete". Errors are now read as objects or text; semgrep's
warnings (level "warn") do not fail the run, and neither kind is logged
with its message, which quotes the scanned code (counts only).
- gitleaks' generic-api-key flagged 30 Firebase Storage download URLs
(`?alt=media&token=<uuid>`) in nowinandroid; such a token only makes
one stored file public and ships with the app by design. A global
allowlist (line regex) drops those lines; checked with the image's
gitleaks 8.21.2 (`[allowlist]`, as it predates `[[allowlists]]`), and a
real key on another line is still reported.
Baselines: swiftui completes with only the sbom_dependencies skip;
nowinandroid has 63 components and 7 mobsfscan findings, labelled by app
module.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p