Repository navigation
Prefer the GHA-provided rust tooling - #2521
Conversation
GitHub Actions can potentially be a significant security vulnerability; we should try to avoid unnecessary dependencies. The recent breakage seems to have been a transient issue; going forward, I would advise that -- should we face such an issue again -- we try temporarily pinning our runner image or our action to a stable version (e.g. `ubuntu-24.04` as opposed to `ubuntu-latest`, `actions/checkout@v4` as opposed to `actions/checkout@main`). Then we can just revert back to latest or main once the issue has sorted itself out.
767257b to
e050a5e
Compare
|
Good! Nice move. Upon a fast review, I realized we do not test windows or mac binaries. If we don't have specific functions to test in those OSes, that's fine. I have to check that |
Good catch. We probably should, though it will add some time to our CI builds. We could probably recover some of that with caching though -- there is now an official GHA-provided cache that should work for rust builds. I tested it out at https://github.com/n8henrie/test-ga-fmt-cache/blob/master/.github/workflows/ci.yml |
|
Also, to be clear, I'm not 100% against depending on third-party actions, I just think it should be avoided. I am fine with depending on the official GitHub-provided actions, as I would expect them to be more secure (and quickly updated when vulnerabilities are discovered). For example, I'm pretty sure that a bad actor with access to an action upon which we depend could access our secrets, potentially compromising your codesigning certificate, which would be a mess. (The secrets are masked in the output, but they might be able to e.g. start an interactive tmate session, or possibly echo those secrets to a file and then upload the file as an artifact, etc.). |
|
Well that failure is interesting. |
|
I was because it was missing the macos x86 target. I should merge, right? |
|
Oh, of course! Yes, if it looks good to you, go ahead and merge. I think I'm going to make a separate PR adding the cache. |
* Prefer the GHA-provided rust tooling GitHub Actions can potentially be a significant security vulnerability; we should try to avoid unnecessary dependencies. The recent breakage seems to have been a transient issue; going forward, I would advise that -- should we face such an issue again -- we try temporarily pinning our runner image or our action to a stable version (e.g. `ubuntu-24.04` as opposed to `ubuntu-latest`, `actions/checkout@v4` as opposed to `actions/checkout@main`). Then we can just revert back to latest or main once the issue has sorted itself out. * add x86 toolchain ---------
GitHub Actions can potentially be a significant security vulnerability;
we should try to avoid unnecessary dependencies.
The recent breakage seems to have been a transient issue; going
forward, I would advise that -- should we face such an issue again
-- we try temporarily pinning our runner image or our action to a
stable version (e.g.
ubuntu-24.04as opposed toubuntu-latest,actions/checkout@v4as opposed toactions/checkout@main). Then wecan just revert back to latest or main once the issue has sorted itself
out.