`scp -r dist/.` also sets the mode of the target folder, which only its owner may do. Copying the contents (`dist/*`, with dotglob for hidden files) leaves the folder itself alone, so group write access on the test folder is enough. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>