macadmins / sofa

SOFA | A MacAdmin's Simple Organized Feed for Apple Software Updates
https://sofa.macadmins.io
Apache License 2.0
162 stars 27 forks source link

Security release ProductVersion is dropping .0 for OS x.0 releases #174

Closed loceee closed 1 month ago

loceee commented 1 month ago

Hey gang,

I love SOFA. Just bouncing off this issue when doing reporting with latest releases.

The ProductVersion value in the SecurityRelease list on the feeds are dropping the .0 - ie. of iOS 18 expected 18.0 - but got 18. Assuming is being treated as the wrong type or something.

I am doing a lookup based on OSVersion.Latest.ProductVersion to then get the associated CVEs from the SecurityReleases .. and that's failing over since the version values don't match.

....
    "OSVersions": [{
        "OSVersion": "18",
        "Latest": {
            "ProductVersion": "18.0",
            "Build": "22A6354",
            "ReleaseDate": "2024-09-16T00:00:00Z",
            "ExpirationDate": "2024-12-15T00:00:00Z",
            "SupportedDevices": [ ....]
        },
        "SecurityReleases": [{
            "UpdateName": "iOS 18 and iPadOS 18",
            "ProductName": "iOS",
            "ProductVersion": "18",
            "ReleaseDate": "2024-09-16T00:00:00Z",
            "ReleaseType": "OS",
            "SecurityInfo": "https://support.apple.com/en-ca/121250",
            "SupportedDevices": [...],
            "CVEs": {
                "CVE-2024-40840": false,
...