Files
hermes-agent/scripts
BearHuddleston 33ca244682 fix(ci): classify notarytool's output but keep it out of the preflight log
5a93368019 redacted the key file's own lines from notarytool's output
before logging it. That still missed key material echoed at other line
widths, and because it ran before classification, a key-file line such
as a preamble reading "403" turned "HTTP status code: 403. Forbidden."
into a warning.

Classify notarytool's raw output and log only the controlled verdict and
its exit status; no notarytool text reaches the job log, so nothing in
it needs redacting (redact_secrets and the PEM block pattern go). The
operator still gets the HTTP status and the remedy from the verdict, and
the unchanged notarize hook logs its own notarytool run.

The test echoes the key body re-wrapped at 40 columns on HTTP 401 and
HTTP 500 and checks that a key file with a "403" preamble still fails
closed on 403. The previous helper leaks the re-wrapped body on 401 and
warns on that 403; logging the raw output or its last line is caught.

Found by a gpt-6.2-sol review round.
2026-11-22 01:56:27 +00:00
..
…