Uh oh!
There was an error while loading. Please reload this page.
publish-toolstate: show more context on HTTP error - #75844
Conversation
rust-highfive
commented
Aug 23, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
Aug 23, 2020
Can you confirm this doesn't leak the GitHub token or anything else like that? I suspect no, because it seems to just log the response which IIRC shouldn't contain anything - but would be good to confirm (just looking at what it typically prints is enough IMO). r=me if so |
ehuss
commented
Aug 23, 2020
Yea, the output is just the JSON object, which looks something like this: Another example (from the docs) would be: It does not include any http headers. I'm pretty sure the API never echoes any secrets. Additionally, I believe GitHub Actions (and Azure) have secret scrubbers in the log output which prevents things like GitHub tokens from being exposed. @bors r=Mark-Simulacrum rollup |
bors
commented
Aug 23, 2020
📌 Commit 2e6f2e8 has been approved by |
…r=Mark-Simulacrum publish-toolstate: show more context on HTTP error The default display for HTTPError in Python does not include the request body. For GitHub API, the body includes more details about the error (like rate limiting). This could help diagnosing errors like this: rust-lang#75815 (comment)
Rollup of 10 pull requests Successful merges: - rust-lang#75819 (Use intra-doc-links in `core::{char, macros, fmt}`) - rust-lang#75821 (Switch to intra-doc links in `std::macros`) - rust-lang#75825 (Fix typo in documentation of i32 wrapping_abs()) - rust-lang#75826 (Corrected Misleading documentation for derived Ord/PartialOrd implementation ) - rust-lang#75831 (doc: Prefer https link for wikipedia URLs) - rust-lang#75844 (publish-toolstate: show more context on HTTP error) - rust-lang#75847 (Switch to intra-doc links in `std::collections`) - rust-lang#75851 (Switch to intra-doc links in `core::array`) - rust-lang#75856 (more tool clippy fixes) - rust-lang#75859 (doc: Fix typo in std::process::Child documentation) Failed merges: r? @ghost
The default display for HTTPError in Python does not include the request body. For GitHub API, the body includes more details about the error (like rate limiting). This could help diagnosing errors like this: #75815 (comment)