feat(ios): Carthage pins in the SBOM, iOS and Swift lifecycle findings
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m8s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m8s
iOS readiness, story 1 (detection and SBOM). Syft already reads
Podfile.lock and Package.resolved (also inside the Xcode project); what
was missing:
- Carthage: Cartfile.resolved is read (sbom/carthage.rs). A github/git
pin is the same repository at the same tag as its Swift package, so it
gets the purl OSV keys Swift advisories by
(pkg:swift/github.com/grpc/grpc-swift@1.0.0) and is matched; a
repository also pinned through SwiftPM is listed once. A binary
framework is listed without a purl, and the coverage note names its
Cartfile.resolved, since no advisory database covers it. A Cartfile
without Cartfile.resolved is now the gap (was: every Cartfile).
- build-lifecycle reads every app project.pbxproj (not Pods or Carthage
checkouts) at its lowest setting:
- ios-deployment-target-end-of-support (Low): IPHONEOS_DEPLOYMENT_TARGET
below 15 lets the app install on iOS releases without security updates
(iOS 15 got 15.8.8 in May 2026; 14 and 12 are end of life).
- swift-version-end-of-support (Medium): SWIFT_VERSION below 4, which no
Xcode since 10.2 builds.
Both map to cra-ai-22; the binding now covers swift/objc. The Xcode
version is not judged: a repository does not record it.
- Classification: an .xcworkspace or a Cartfile also marks an iOS app.
- Nightly fixture mobile/ios-carthage-legacy (Swift 3, iOS 10, Carthage
with Alamofire, grpc-swift and a binary framework): baseline holds the
four grpc-swift advisories and both lifecycle findings.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
34688fa322
commit
56fa334b75
14 files changed
+547
-19
No files matched your search
+12
-4
@@ -19,15 +19,19 @@ Prüfwerk builds the SBOM during each scan:
|
||||
- **Mobile apps** -- the lockfiles of Android, iOS and Flutter apps, wherever
|
||||
they sit in the tree (`android/`, `ios/`, an Xcode project): `gradle.lockfile`,
|
||||
`Podfile.lock`, `Package.resolved` (also the one inside
|
||||
`*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/`) and `pubspec.lock`.
|
||||
`*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/`), `Cartfile.resolved`
|
||||
and `pubspec.lock`. A Carthage pin of a repository is matched like the Swift
|
||||
package of the same repository; a prebuilt `binary` framework is listed with
|
||||
its version, but no advisory database covers it, which the scan says under
|
||||
**Nicht ausgeführt**.
|
||||
Gradle writes `gradle.lockfile` only with dependency locking switched on
|
||||
(`dependencyLocking { lockAllConfigurations() }`, then
|
||||
`./gradlew dependencies --write-locks`). Without it, Prüfwerk reads the
|
||||
direct dependencies from the build files (`build.gradle(.kts)`, versions in
|
||||
`ext` variables, `gradle.properties` and `gradle/libs.versions.toml`), but
|
||||
only those that ship with the app and have an exact version; what they pull
|
||||
in stays unknown. In that case, and for Carthage, whose
|
||||
`Cartfile.resolved` no tool reads, the scan reports the manifest under
|
||||
in stays unknown. In that case, and for a `Cartfile` without its
|
||||
`Cartfile.resolved`, the scan reports the manifest under
|
||||
**Nicht ausgeführt** and the SBOM requirements of the CRA view are
|
||||
**Nicht bewertet**: an app whose dependencies are unknown is not shown as
|
||||
clean.
|
||||
@@ -58,7 +62,11 @@ nowhere readable. Prüfwerk reports it as a finding (**Legacy build system: the
|
||||
SBOM cannot be determined**, with the migration as the remedy) and lists it
|
||||
under **Nicht ausgeführt**, so the SBOM requirements are **Nicht bewertet**
|
||||
rather than clean. An Android API level below 29 or a Unity release out of
|
||||
support is a finding of its own.
|
||||
support is a finding of its own, and so is, in an Xcode project, an iOS
|
||||
deployment target below 15 (the app then installs on iOS releases that receive
|
||||
no security updates) or a `SWIFT_VERSION` below 4, which no supported Xcode
|
||||
builds. Which Xcode builds an app is not recorded in the repository and is not
|
||||
judged.
|
||||
|
||||
Firmware images, container images and app packages are not unpacked yet; their
|
||||
components come from the source code.
|
||||
|
||||
Reference in new issue
Block a user