-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ci: introduce rust toolchain #9791
base: master
Are you sure you want to change the base?
Conversation
276e9cc
to
f55e777
Compare
.github/workflows/depends.yml
Outdated
# We could update ld (a pain), update Ubuntu (requires a large amount of changes), or downgrade Rust | ||
# We can't use Rust 1.70 due to LLVM 16 requiring ld >= 2.40 when building for Windows | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
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.
Installing a script sourced from a serbian TLD without any validation in the depends environment makes me nervous. You may want to force a manual installation with a known checksum, as described here: https://rust-lang.github.io/rustup/installation/other.html#manual-installation.
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.
To be clear, I think country-level TLDs increase the risk (irrespective of country), but the methodological concern applies to any domain.
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.
Rustup installs unsigned binaries that rolled off some CI somewhere. For development builds, I think that's fine. For release builds, that's not okay. The CI jobs here are not release builds and anyone who wishes to run the artifacts should take proper precaution by running them in an isolated environment.
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.
The CI jobs here are not release builds and anyone who wishes to run the artifacts should take proper precaution by running them in an isolated environment.
I do not object to this policy, and I like the wording; perhaps you can post this exact sentence as a comment at the top of the file, so readers understand the workflow's aim.
Co-authored-by: Luke Parker <[email protected]>
No description provided.