Skip to content

v0.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 10 Dec 00:41
afea6c6

Using Bzlmod with Bazel 6 or greater

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

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

register_toolchains("@syft_toolchains//:all")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_syft",
    sha256 = "68e70e736b2f595ebb9c6febb7309f310416e1d1d7da51e5d3b35096ba2f0fee",
    strip_prefix = "rules_syft-0.1.0",
    url = "https://github.com/ihavespoons/rules_syft/releases/download/v0.1.0/rules_syft-v0.1.0.tar.gz",
)

load("@rules_syft//syft:repositories.bzl", "syft_register_toolchains")

syft_register_toolchains()

load("@rules_syft//grype:repositories.bzl", "grype_register_database", "grype_register_toolchains")

grype_register_toolchains()

grype_register_database(
    name = "grype_database",
    sha256 = "96a5396fc536f1d239960a3719114d198a7e191485d5e87a5232c22dfc99cafb",
    url = "https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-05-17T01:31:32Z_1716007601.tar.gz",
    validate_age = False,
)

What's Changed

Full Changelog: v0.0.2...v0.1.0