Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Handle SSH host keys in upload script #45

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

aperezdc
Copy link
Member

@aperezdc aperezdc commented Nov 6, 2023

Add a known_hosts option when opening SFTP connections in the upload script, to validate that the host we are connecting to is indeed the one we expect. The data in OpenSSH's known_hosts format is picked from the UPLOAD_SSH_KNOWN_HOSTS environment variable.

Add a known_hosts option when opening SFTP connections in the upload
script, to validate that the host we are connecting to is indeed the
one we expect. The data in OpenSSH's known_hosts format is picked from
the UPLOAD_SSH_KNOWN_HOSTS environment variable.
@aperezdc aperezdc requested a review from zhani November 6, 2023 09:06
@aperezdc aperezdc self-assigned this Nov 6, 2023
@aperezdc
Copy link
Member Author

aperezdc commented Nov 6, 2023

I have added the UPLOAD_SSH_KNOWN_HOSTS secret to the GitHub Actions configuration in the repository, so this should be ready to go ⚙️

@aperezdc aperezdc force-pushed the aperezdc/ssh-known-hosts-upload branch 3 times, most recently from 98fcec5 to 1a2b4f1 Compare November 6, 2023 09:39
Add a workflow input variable to determine whether built packages should
be uploaded, which may come in useful for testing. By default, packages
are only uploaded after successful merges.
@aperezdc aperezdc force-pushed the aperezdc/ssh-known-hosts-upload branch from 1a2b4f1 to 65ef3a9 Compare November 6, 2023 09:44
@aperezdc aperezdc force-pushed the aperezdc/ssh-known-hosts-upload branch from 8fa4015 to fd574b9 Compare November 6, 2023 11:09
@aperezdc aperezdc merged commit 6239939 into wpe-android Nov 6, 2023
3 checks passed
@aperezdc aperezdc deleted the aperezdc/ssh-known-hosts-upload branch November 6, 2023 22:27
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.

2 participants