Skip to content
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

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

zifeitong
Copy link
Contributor

@zifeitong zifeitong commented Jul 12, 2024

Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsharpe jsharpe merged commit 4a79c36 into bazel-contrib:main Aug 14, 2024
14 checks passed
@cloudhan
Copy link
Collaborator

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.

@zifeitong
Copy link
Contributor Author

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.

@cloudhan
Copy link
Collaborator

@zifeitong Thanks for pointing out. I am OK with either format. Simply put sha256 is just some old boring format used in practice.

anakinxc referenced this pull request in secretflow/spu Aug 24, 2024
[![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://github.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://github.com/bazel-contrib/rules_cuda/releases/tag/v0.2.3)

[Compare
Source](https://github.com/bazel-contrib/rules_cuda/compare/v0.2.2...v0.2.3)

#### `WORKSPACE` code

```starlark
load("@&#8203;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("@&#8203;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
[@&#8203;zifeitong](https://github.com/zifeitong) in
[https://github.com/bazel-contrib/rules_cuda/pull/259](https://github.com/bazel-contrib/rules_cuda/pull/259)
- Fix strip_prefix when publishing to BCR by
[@&#8203;jsharpe](https://github.com/jsharpe) in
[https://github.com/bazel-contrib/rules_cuda/pull/269](https://github.com/bazel-contrib/rules_cuda/pull/269)

#### New Contributors

- [@&#8203;zifeitong](https://github.com/zifeitong) made their first
contribution in
[https://github.com/bazel-contrib/rules_cuda/pull/259](https://github.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants