-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop SSH keys from env when running external commands #1962
Conversation
93fcd6d
to
0a65a57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't save us from these cases though (there are probably more)?
Documenter.jl/src/Utilities/Utilities.jl
Line 777 in 70017e0
read(pipeline(cmd; stderr = stderr_output), String) |
In general, I think doing something like this is worth it, but I think in addition we should also fix the places where we print the Cmd
objects in errors.
Documenter.jl/src/Utilities/Utilities.jl
Line 431 in 70017e0
readchomp(`$(git()) rev-parse HEAD`) |
Perhaps we should also recommend splitting it up in two steps and only provide the secret in the yml file to the deploydocs part. |
This was also mentioned here: #1959 (comment) I don't think it's a bad idea. The only question I have though is whether we should then move towards having more of the decision whether to deploy or not in the CI config, as opposed to decided by |
0a65a57
to
fada356
Compare
fada356
to
720db06
Compare
This patch removes DOCUMENTER_KEY from the environment when it is not needed. In particular, it is removed from all of makedocs(...) and removed from all git commands in deploydocs, fixes #1958.
720db06
to
3cadd7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should fix #1958.