Skip to content

fix(setup): verify all, refuse encrypted SSH key - #56

Merged
noctuum merged 1 commit into
mainfrom
fix/setup-verify-ssh-key
Oct 21, 2026
Merged

noctuum merged 1 commit into
mainfrom
fix/setup-verify-ssh-key

Conversation

@noctuum

@noctuum noctuum commented Oct 21, 2026

Copy link
Copy Markdown
Member

setup.sh verify stopped at the first failed check: ((errors++)) returns 1 when errors is 0, and the script runs under set -e. The remaining checks did not run, the summary did not print, and a full setup lost the answers of the run. Every check now runs, the config is saved, and the exit status is 1 when a check failed.

The ssh step accepted a key with a passphrase, and secrets uploaded it as AUR_SSH_KEY. The workflow writes that key to a file and has no agent to unlock it. The step now refuses such a key and prints the commands that remove the passphrase from a copy.

bats tests/ --recursive: 488 pass. shellcheck, shfmt and actionlint are clean.

A failed verify still saves the config and exits with status 1.
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
scripts/setup.sh 85.71% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@noctuum
noctuum merged commit b78119c into main Oct 21, 2026
5 checks passed
@noctuum
noctuum deleted the fix/setup-verify-ssh-key branch October 21, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant