Skip to content

Releases: ihavespoons/rules_syft

v0.1.0

10 Dec 00:41
afea6c6
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

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

v0.0.2

29 May 06:37
cd4273f
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release

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

v0.0.1

13 Nov 11:12
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

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.1")

syft_configure = use_extension("@rules_syft//syft:extensions.bzl", "syft")
syft_configure.toolchain(syft_version = "0.96.0")
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 = "371e764ad6dde2fa7724cd1dfab4781de8f4d9f5a537483089ced7b5eb6764e4",
    strip_prefix = "rules_syft-0.0.1",
    url = "https://github.com/ihavespoons/rules_syft/releases/download/v0.0.1/rules_syft-v0.0.1.tar.gz",
)
load("@rules_syft//syft:repositories.bzl", "syft_register_toolchains")

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