Releases: ihavespoons/rules_syft
Releases · ihavespoons/rules_syft
v0.1.0
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - 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
- Updates, Refactoring, Grype-Support by @betaboon in #5
- Create FUNDING.yml by @ihavespoons in #9
- Update presubmit.yml by @ihavespoons in #10
- Update presubmit.yml by @ihavespoons in #11
- Fixing test templates grrr... by @ihavespoons in #12
- chore: update tool versions by @betaboon in #13
- Attempting to fix CI issues by @ihavespoons in #15
- General cleanup, retiring of old functions and fixing of issues with deployment by @ihavespoons in #16
- Updating module dependencies to newer versions by @ihavespoons in #17
Full Changelog: v0.0.2...v0.1.0
v0.0.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - 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
- Added example for multiarch sbom generation by @ihavespoons in #2
- chore: update tool versions by @betaboon in #3
- chore: Update BCR deployment specs by @ihavespoons in #6
- Remove Windows from test matrix by @ihavespoons in #7
- Updated presubmit to include bazel version matrix by @ihavespoons in #8
New Contributors
- @ihavespoons made their first contribution in #2
- @betaboon made their first contribution in #3
Full Changelog: v0.0.1...v0.0.2
v0.0.1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - 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",
)