File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 7474
7575# https://github.com/JuliaVersionControl/Git.jl/issues/51
7676@testset " OpenSSH integration" begin
77- is_ci = parse (Bool, strip (get (ENV , " CI" , " false" )))
78- is_gha = parse (Bool, strip (get (ENV , " GITHUB_ACTIONS" , " false" )))
79- if is_ci && is_gha
80- @info " This is GitHub Actions CI, so running the OpenSSH test..."
77+ ssh_privkey = get (ENV , " CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" , " " )
78+ if ! isempty (ssh_privkey)
79+ @info " CI private key available, so running the OpenSSH test..."
8180 mktempdir () do sshprivkeydir
8281 privkey_filepath = joinpath (sshprivkeydir, " my_private_key" )
8382 open (privkey_filepath, " w" ) do io
84- ssh_privkey = ENV [" CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" ]
8583 println (io, ssh_privkey)
8684 end # open
8785 # 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