Drop stapling#165
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the stapling step (xcrun stapler staple) from the macOS signing and notarization workflow. The review feedback points out a potential issue where using printf with arbitrary command output from a JSON log file can fail or corrupt output if % characters are present. It is recommended to safely print the log using echo and cat instead.
| @@ -90,9 +90,6 @@ runs: | |||
| printf "=== Log output === \n$(cat /tmp/notarization_log.json)\n" | |||
There was a problem hiding this comment.
Using printf with arbitrary command output as the format string can lead to issues if the output contains % characters (which is common in JSON logs, e.g., URL-encoded strings or percentages). This can cause printf to fail or produce garbled output.
Consider printing the header separately and using cat directly to output the log file safely.
echo "=== Log output ==="
cat /tmp/notarization_log.json
Greptile SummaryThis PR removes the
Confidence Score: 5/5Safe to merge — the removed command cannot operate on plain binaries and would have errored if exercised. The change removes a No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Drop stapling" | Re-trigger Greptile |
No description provided.