Skip to content

Commit

Permalink
Check for submission status
Browse files Browse the repository at this point in the history
  • Loading branch information
doggydogworld committed Mar 3, 2025
1 parent ea53aaa commit 58721cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/mac-distribution/notarize/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ func (t *Tool) WaitForSubmission(id string) error {
}
t.log.Info("waiting done", "response", sub)

// Exit code is 0 if wait completes regardless of status
// Must check status to ensure submission was successful
if sub.Status != "Accepted" {
return fmt.Errorf("submission failed: %s", sub.Status)
}

return nil
}

Expand Down

0 comments on commit 58721cd

Please sign in to comment.