-
Notifications
You must be signed in to change notification settings - Fork 481
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
Reporting process errors leaks DOCUMENTER_KEY #1958
Labels
Comments
This doesn't help in the general case, but GitHub Actions scrubs secrets, so at least it doesn't show up there: JuliaEcosystem/PackageAnalyzer.jl#68 (comment) |
Travis did too, even scrubbed clever things like base64 encodings of the secret. That is probably a reasonable feature request for Buildkite, but we can of course try harder in Documenter too. |
fredrikekre
added a commit
that referenced
this issue
Oct 10, 2022
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.
fredrikekre
added a commit
that referenced
this issue
Oct 10, 2022
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.
fredrikekre
added a commit
that referenced
this issue
Oct 10, 2022
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.
fredrikekre
added a commit
that referenced
this issue
Oct 16, 2022
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documenter.jl currently wraps
git
commands intry
/catch
, reporting the failed process exception when something goes wrong. This is very bad, because it may leak the DOCUMENTER_KEY environment variable that the user has set:It would be best to not just dump these exceptions to STDOUT (even if you scrub DOCUMENTER_KEY it may contain other sensitive information). In addition, it's probably best to scrub DOCUMENTER_KEY from the environment as soon as its parsed by Documenter.jl to prevent it from leaking to any other spawned commands.
cc @ChrisRackauckas
The text was updated successfully, but these errors were encountered: