Skip to content

Commit 90ea4e3

Browse files
authored
Merge pull request #41 from rtCamp/update/gh-known-hosts
Update GitHub public key in known_hosts
2 parents d4b46cd + 373bb34 commit 90ea4e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: 'Deploy WordPress code to a server'
33
author: 'rtCamp'
44
runs:
55
using: 'docker'
6-
image: 'docker://ghcr.io/rtcamp/action-deploy-wordpress:v3.0.2'
6+
image: 'docker://ghcr.io/rtcamp/action-deploy-wordpress:v3.0.3'
77
branding:
88
icon: 'upload-cloud'
99
color: 'yellow'

main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function maybe_install_submodules() {
144144
# Check and update submodules if any
145145
if [[ -f "$GITHUB_WORKSPACE/.gitmodules" ]]; then
146146
# add github's public key
147-
echo "|1|qPmmP7LVZ7Qbpk7AylmkfR0FApQ=|WUy1WS3F4qcr3R5Sc728778goPw= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >>/etc/ssh/known_hosts
147+
curl -sL https://api.github.com/meta | jq -r '.ssh_keys | .[]' | sed -e 's/^/github.com /' >>/etc/ssh/known_hosts
148148

149149
identity_file=''
150150
if [[ -n "$SUBMODULE_DEPLOY_KEY" ]]; then

0 commit comments

Comments
 (0)