-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Make it clear that "integrity" field expects SRI #259
Conversation
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
I don't think this is a related thing at all. The page referenced is a doc for web developers. The SRI suggested is for validating resources embedded in the html, it just happens to have common meaning with the checksum. This change actually look really bad to me. |
archive_override() uses SRI for checksum: https://bazel.build/rules/lib/globals/module#archive_override. It's somewhat obscure (e.g. checksum are encoded in base64 instead of hexstring). I added #268 hoping to make it clearer and less verbose. |
@zifeitong Thanks for pointing out. I am OK with either format. Simply put |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_cuda](https://togithub.com/bazel-contrib/rules_cuda) | http_archive | patch | `v0.2.2` -> `v0.2.3` | --- ### Release Notes <details> <summary>bazel-contrib/rules_cuda (rules_cuda)</summary> ### [`v0.2.3`](https://togithub.com/bazel-contrib/rules_cuda/releases/tag/v0.2.3) [Compare Source](https://togithub.com/bazel-contrib/rules_cuda/compare/v0.2.2...v0.2.3) #### `WORKSPACE` code ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_cuda", sha256 = "c92b334d769a07cd991b7675b2f6076b8b95cd3b28b14268a2f379f8baae58e0", strip_prefix = "rules_cuda-v0.2.3", urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.2.3/rules_cuda-v0.2.3.tar.gz"], ) load("@​rules_cuda//cuda:repositories.bzl", "register_detected_cuda_toolchains", "rules_cuda_dependencies") rules_cuda_dependencies() register_detected_cuda_toolchains() ``` #### What's Changed - Make it clear that "integrity" field expects SRI by [@​zifeitong](https://togithub.com/zifeitong) in [https://github.com/bazel-contrib/rules_cuda/pull/259](https://togithub.com/bazel-contrib/rules_cuda/pull/259) - Fix strip_prefix when publishing to BCR by [@​jsharpe](https://togithub.com/jsharpe) in [https://github.com/bazel-contrib/rules_cuda/pull/269](https://togithub.com/bazel-contrib/rules_cuda/pull/269) #### New Contributors - [@​zifeitong](https://togithub.com/zifeitong) made their first contribution in [https://github.com/bazel-contrib/rules_cuda/pull/259](https://togithub.com/bazel-contrib/rules_cuda/pull/259) **Full Changelog**: bazel-contrib/rules_cuda@v0.2.2...v0.2.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/secretflow/spu). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Documented in https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity