fix: harden setup step and clear shell history on image capture#33
Merged
Conversation
Removes ~/.zsh_history and ~/.bash_history before image capture so build session commands are not visible in published images. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Temporary diagnostic to verify the runner is in the Aqua session (asid=100003) after the SessionCreate plist fix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove the temporary audit session logging and VM state polling steps added during debugging. Add ServerAliveInterval/ServerAliveCountMax to the Run setup SSH command and a 15-minute step timeout to prevent the job from hanging silently if the SSH connection drops mid-install. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
spikeburton
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clear_shell_historystep tosetup.shthat removes~/.zsh_historyand~/.bash_historybefore image capture, preventing build session commands from appearing in published imagestimeout-minutes: 15and SSHServerAliveInterval/ServerAliveCountMaxto the Run setup step so the job fails fast on a dropped connection instead of hanging indefinitelyTest plan
images: sonomato confirm setup completes and history files are absent in the saved image🤖 Generated with Claude Code