iOS readiness, story 5: public samples in the nightly. Requested by the platform session for the mobile epic. Stage only.
Samples
Fetched at pinned commits in nightly.yml, like the Zephyr and CODESYS samples. They are not committed, and their targets are skipped when the env var is unset.
Target
Source
Pin
What it covers
mobile-public-ios-swiftui
nalexn/clean-architecture-swiftui (MIT)
9eca97b8
Current SwiftUI app (iOS 18, Swift 5), Swift packages without Package.resolved. Expect the iOS type, no lifecycle or ios-config findings, and a recorded sbom_dependencies skip.
mobile-public-android-nowinandroid
android/nowinandroid (Apache-2.0)
a49ed253
Large Android app with version catalogs and two app modules. Expect ≥ 20 components from the catalog, mobsfscan with the Android rules, and variants app / app-nia-catalog.
Bugs the samples found (fixed here)
mobsfscan failed on every SwiftUI app.
semgrep reports a partially parsed file (newer Swift syntax) as an error object, but Report.errors: Vec<String> expected strings. Deserialisation failed, and sast_mobile was skipped as "did not complete".
Errors are now read as an object or text. Warnings (level: "warn") do not fail the run.
Messages are not logged because they quote the scanned code; only counts are.
A test covers the real report shape.
gitleaks generic-api-key reported 30 Firebase Storage URLs (…?alt=media&token=<uuid>) in nowinandroid.
Such a token only unlocks one stored file and ships with the app by design.
A global [allowlist] (line regex) in rules/gitleaks.toml drops these lines.
Tested with the image's gitleaks 8.21.2: [[allowlists]] doesn't exist before 8.25. A Stripe key in the same file is still reported.
Baselines
swiftui: completed, only the sbom_dependencies skip, no findings.
**iOS readiness, story 5: public samples in the nightly.** Requested by the platform session for the mobile epic. Stage only.
## Samples
Fetched at pinned commits in `nightly.yml`, like the Zephyr and CODESYS samples. They are not committed, and their targets are skipped when the env var is unset.
| Target | Source | Pin | What it covers |
|---|---|---|---|
| `mobile-public-ios-swiftui` | nalexn/clean-architecture-swiftui (MIT) | `9eca97b8` | Current SwiftUI app (iOS 18, Swift 5), Swift packages without `Package.resolved`. Expect the iOS type, no lifecycle or ios-config findings, and a recorded `sbom_dependencies` skip. |
| `mobile-public-android-nowinandroid` | android/nowinandroid (Apache-2.0) | `a49ed253` | Large Android app with version catalogs and two app modules. Expect ≥ 20 components from the catalog, mobsfscan with the Android rules, and variants `app` / `app-nia-catalog`. |
## Bugs the samples found (fixed here)
1. **mobsfscan failed on every SwiftUI app.**
- semgrep reports a partially parsed file (newer Swift syntax) as an error **object**, but `Report.errors: Vec<String>` expected strings. Deserialisation failed, and `sast_mobile` was skipped as "did not complete".
- Errors are now read as an object or text. Warnings (`level: "warn"`) do not fail the run.
- Messages are not logged because they quote the scanned code; only counts are.
- A test covers the real report shape.
2. **gitleaks `generic-api-key` reported 30 Firebase Storage URLs** (`…?alt=media&token=<uuid>`) in nowinandroid.
- Such a token only unlocks one stored file and ships with the app by design.
- A global `[allowlist]` (line regex) in `rules/gitleaks.toml` drops these lines.
- Tested with the image's **gitleaks 8.21.2**: `[[allowlists]]` doesn't exist before 8.25. A Stripe key in the same file is still reported.
## Baselines
- swiftui: `completed`, only the `sbom_dependencies` skip, no findings.
- nowinandroid: 63 components; 7 mobsfscan findings (allowBackup, task hijacking, Kotlin logging), labelled by app module.
- Local nightly (bless, then compare): green. The Python baselines' OSV drift was discarded.
## To check on stage
1. Upload the swiftui zip as an archive. The mobile code analysis runs with no "mobsfscan wurde nicht fertig" entry.
2. Upload an app with Firebase Storage image URLs: no more "generic-api-key" findings.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
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
sharang
merged commit 70e7bc9533 into main2026-10-06 00:59:33 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
iOS readiness, story 5: public samples in the nightly. Requested by the platform session for the mobile epic. Stage only.
Samples
Fetched at pinned commits in
nightly.yml, like the Zephyr and CODESYS samples. They are not committed, and their targets are skipped when the env var is unset.mobile-public-ios-swiftui9eca97b8Package.resolved. Expect the iOS type, no lifecycle or ios-config findings, and a recordedsbom_dependenciesskip.mobile-public-android-nowinandroida49ed253app/app-nia-catalog.Bugs the samples found (fixed here)
Report.errors: Vec<String>expected strings. Deserialisation failed, andsast_mobilewas skipped as "did not complete".level: "warn") do not fail the run.generic-api-keyreported 30 Firebase Storage URLs (…?alt=media&token=<uuid>) in nowinandroid.[allowlist](line regex) inrules/gitleaks.tomldrops these lines.[[allowlists]]doesn't exist before 8.25. A Stripe key in the same file is still reported.Baselines
completed, only thesbom_dependenciesskip, no findings.To check on stage
🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p