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 74
74
75
75
# https://github.com/JuliaVersionControl/Git.jl/issues/51
76
76
@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..."
81
80
mktempdir () do sshprivkeydir
82
81
privkey_filepath = joinpath (sshprivkeydir, " my_private_key" )
83
82
open (privkey_filepath, " w" ) do io
84
- ssh_privkey = ENV [" CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" ]
85
83
println (io, ssh_privkey)
86
84
end # open
87
85
# 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