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

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:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-06 00:52:02 +02:00
1 parent 34688fa322
commit 56fa334b75
14 files changed
+547 -19

No files matched your search

+7 -3
View File
@@ -736,14 +736,18 @@
"languages": [
"java",
"kotlin",
"csharp"
"csharp",
"swift",
"objc"
],
"cwe": [],
"rules": [
"android-sdk-end-of-support",
"unity-editor-end-of-support"
"unity-editor-end-of-support",
"ios-deployment-target-end-of-support",
"swift-version-end-of-support"
],
"check": "The platform a product is built for must still receive security updates; an Android API level or a Unity editor release out of support violates it."
"check": "The platform a product is built for, and the tools it is built with, must still receive security updates; an Android API level, a Unity editor release or an iOS deployment target out of support, or a Swift version no supported Xcode builds, violates it."
}
],
"note": null,