feat(ios): Carthage pins in the SBOM, iOS and Swift lifecycle findings (#478)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Docs (push) Successful in 1m8s

This commit was merged in pull request #478.
This commit is contained in:
sharang committed 2026-10-05 23:14:04 +00:00
1 parent fc099d07c1
commit 2941d89fc5
14 files changed
+547 -19

No files matched your search

@@ -0,0 +1,20 @@
{
"scan_status": "completed",
"skipped_stages": [
"sbom_dependencies"
],
"sbom": [
"carthage:Alamofire/Alamofire@4.8.2",
"carthage:PumpSDK@3.1.0",
"carthage:grpc/grpc-swift@1.0.0"
],
"findings": [],
"cves": [
"GHSA-2jx2-qcm4-rf9h",
"GHSA-4rhq-vq24-88gw",
"GHSA-r6ww-5963-7r95",
"GHSA-rxmj-hg9v-vp3p",
"ios-deployment-target-end-of-support",
"swift-version-end-of-support"
]
}
+1
View File
@@ -12,6 +12,7 @@ as a source archive. They prove that no mobile app ends with "0 packages,
| `ios-cocoapods` | `Podfile.lock` (AFNetworking 2.5.1) | 2 pods; a recorded `cve_lookup` skip, as OSV has no CocoaPods advisories |
| `ios-spm-xcode` | `Package.resolved` inside the Xcode project (swift-nio-http2 1.19.0) | 1 Swift component with its advisories (needs the purl in repository form) |
| `ios-spm-unlocked` | nothing: the Xcode project names a Swift package | none; a recorded `sbom_dependencies` skip naming `project.pbxproj` |
| `ios-carthage-legacy` | `Cartfile.resolved` (Alamofire 4.8.2, grpc-swift 1.0.0, a binary vendor framework); an Xcode project at iOS 10 and Swift 3 | both repositories as Swift components, grpc-swift with its advisories; the binary framework listed without; a recorded `sbom_dependencies` skip naming the binary pin; the iOS deployment target and Swift version lifecycle findings |
| `flutter` | `pubspec.lock` (dio 3.0.10); the Android host app is unlocked | the Dart packages and the host app's direct Gradle dependency; a recorded `sbom_dependencies` skip |
| `react-native` | `package-lock.json`; neither `ios/Podfile` nor the Gradle app is locked | the npm packages; a recorded `sbom_dependencies` skip |
@@ -0,0 +1,3 @@
github "Alamofire/Alamofire" ~> 4.0
github "grpc/grpc-swift" == 1.0.0
binary "https://pump-vendor.example.com/carthage/PumpSDK.json" ~> 3.1
@@ -0,0 +1,3 @@
binary "https://pump-vendor.example.com/carthage/PumpSDK.json" "3.1.0"
github "Alamofire/Alamofire" "4.8.2"
github "grpc/grpc-swift" "1.0.0"
@@ -0,0 +1,26 @@
// !$*UTF8*$!
{
archiveVersion = 1;
objectVersion = 46;
objects = {
A1000001 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.pumpremote;
SWIFT_VERSION = 3.0;
};
name = Debug;
};
A1000002 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.pumpremote;
SWIFT_VERSION = 3.0;
};
name = Release;
};
};
rootObject = A1000000;
}
@@ -0,0 +1,6 @@
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
}
+19
View File
@@ -624,6 +624,25 @@
}
]
},
{
"key": "mobile-ios-carthage-legacy",
"name": "iOS · Carthage and an old Xcode project",
"target_type": "ios_app",
"description": "Uploaded as a source archive. A Swift 3 app with an iOS 10 deployment target that pins Alamofire 4.8.2, grpc-swift 1.0.0 and a prebuilt vendor framework in Cartfile.resolved. The repositories must appear as Swift purls (pkg:swift/github.com/grpc/grpc-swift@1.0.0) so OSV matches grpc-swift's advisories, the binary framework must be listed and named under sbom_dependencies, and both iOS lifecycle findings must be raised.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/mobile/ios-carthage-legacy"
}
],
"expect": {
"sast_rule_ids": [
"ios-deployment-target-end-of-support",
"swift-version-end-of-support"
],
"min_sbom_components": 3
}
},
{
"key": "mobile-flutter",
"name": "Flutter app",