Skip to content

Commit b98ca06

Browse files
authored
Check for CI private key in test
1 parent 4d63629 commit b98ca06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ end
9090
@testset "OpenSSH integration" begin
9191
is_ci = parse(Bool, strip(get(ENV, "CI", "false")))
9292
is_gha = parse(Bool, strip(get(ENV, "GITHUB_ACTIONS", "false")))
93-
if is_ci && is_gha
93+
has_privkey = "CI_READONLY_DEPLOYKEY_FOR_CI_TESTSUITE_PRIVATEKEY" keys(ENV)
94+
if is_ci && is_gha && has_privkey
9495
@info "This is GitHub Actions CI, so running the OpenSSH test..."
9596
mktempdir() do sshprivkeydir
9697
privkey_filepath = joinpath(sshprivkeydir, "my_private_key")

0 commit comments

Comments
 (0)