Skip to content

v0.0.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 29 May 06:37
· 9 commits to main since this release
cd4273f

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_syft", version = "0.0.2")

syft_configure = use_extension("@rules_syft//syft:extensions.bzl", "syft")
syft_configure.toolchain(syft_version = "1.4.1")
use_repo(syft_configure, "syft_toolchains")

register_toolchains("@syft_toolchains//:all")

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_syft",
    sha256 = "02f91a6240f0c54da124c99e4d7917207a1e90007fc69340dff2bd9b92e8c957",
    strip_prefix = "rules_syft-0.0.2",
    url = "https://github.com/ihavespoons/rules_syft/releases/download/v0.0.2/rules_syft-v0.0.2.tar.gz",
)
load("@rules_syft//syft:repositories.bzl", "syft_register_toolchains")

syft_register_toolchains(
    "syft",
    syft_version = "1.4.1",
)

What's Changed

New Contributors

Full Changelog: v0.0.1...v0.0.2