File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 90
90
@testset " OpenSSH integration" begin
91
91
is_ci = parse (Bool, strip (get (ENV , " CI" , " false" )))
92
92
is_gha = parse (Bool, strip (get (ENV , " GITHUB_ACTIONS" , " false" )))
93
- has_privkey = " CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" ∈ keys ( ENV )
94
- if is_ci && is_gha && has_privkey
93
+ ssh_privkey = get ( ENV , " CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" , nothing )
94
+ if is_ci && is_gha && ! isnothing (ssh_privkey)
95
95
@info " This is GitHub Actions CI, so running the OpenSSH test..."
96
96
mktempdir () do sshprivkeydir
97
97
privkey_filepath = joinpath (sshprivkeydir, " my_private_key" )
98
98
open (privkey_filepath, " w" ) do io
99
- ssh_privkey = ENV [" CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" ]
100
99
println (io, ssh_privkey)
101
100
end # open
102
101
# We need to chmod our private key to 600, or SSH will ignore it.
You can’t perform that action at this time.
0 commit comments