NotarizationAuditLog

master

Decode JSON audit log from notarization process
phimage/NotarizationAuditLog

NotarizationAuditLog

Swift structure to parse apple notarization audit log.

let data: Data = ... // from file or command output
let auditLog = try JSONDecoder().decode(NotarizationAuditLog.self, from: data)

Example of audit log found on apple website

{
    "archiveFilename": "Overnight TextEditor.app",
    "issues": [
        {
            "message": "The signature of the binary is invalid.",
            "path": "Overnight TextEditor.app/Contents/MacOS/Overnight TextEditor",
            "severity": "error"
        }
    ],
    "jobId": "2EFE2717-52EF-43A5-96DC-0797E4CA1041",
    "logFormatVersion": 1,
    "status": "Invalid",
    "statusSummary": "Archive contains critical validation errors",
    "ticketContents": null,
    "uploadDate": "2018-07-02T20:32:01Z"
}

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 09 2022 02:07:04 GMT-0500 (GMT-05:00)