File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,16 @@ function ssh() {
2929 const knownHosts = core . getInput ( 'known-hosts' )
3030 if ( knownHosts !== '' ) {
3131 fs . appendFileSync ( `${ ssh } /known_hosts` , knownHosts )
32- fs . chmodSync ( `${ ssh } /known_hosts` , '644 ' )
32+ fs . chmodSync ( `${ ssh } /known_hosts` , '600 ' )
3333 } else {
3434 fs . appendFileSync ( `${ ssh } /config` , `StrictHostKeyChecking no` )
35+ fs . chmodSync ( `${ ssh } /config` , '600' )
3536 }
3637
3738 const sshConfig = core . getInput ( 'ssh-config' )
3839 if ( sshConfig !== '' ) {
3940 fs . writeFile ( `${ ssh } /config` , sshConfig )
41+ fs . chmodSync ( `${ ssh } /config` , '600' )
4042 }
4143}
4244
@@ -52,7 +54,7 @@ function dep() {
5254 if ( ! dep ) {
5355 execa . commandSync ( 'curl -LO https://deployer.org/deployer.phar' )
5456 execa . commandSync ( 'sudo chmod +x deployer.phar' )
55- dep = 'deployer.phar'
57+ dep = './ deployer.phar'
5658 }
5759
5860 const subprocess = execa ( dep , split ( core . getInput ( 'dep' ) ) )
You can’t perform that action at this time.
0 commit comments