Skip to content

Commit

Permalink
blackduck parser
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Feb 28, 2024
1 parent 8c792be commit 5e6e78c
Show file tree
Hide file tree
Showing 6 changed files with 4,100 additions and 0 deletions.
52 changes: 52 additions & 0 deletions components/producers/blackduck/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
subinclude(
"//build/defs:buildkit",
"///k8s//build/defs:k8s",
"//build/defs:dracon",
)

go_binary(
name = "blackduck-parser",
srcs = [
"main.go",
],
deps = [
"//api/proto/v1",
"//components/producers",
"//pkg/context",
"//third_party/go/github.com/package-url/packageurl-go",
],
)

go_test(
name = "blackduck_test",
srcs = [
"main.go",
"main_test.go",
],
deps = [
"//api/proto/v1",
"//components/producers",
"//pkg/context",
"//pkg/testutil",
"//third_party/go/github.com/package-url/packageurl-go",
"//third_party/go/github.com/stretchr/testify",
],
)

buildkit_distroless_image(
name = "image",
srcs = [":blackduck-parser"],
visibility = [
"//examples/...",
],
)

dracon_component(
name = "blackduck",
images = [
":image",
"//third_party/docker/securego/gosec",
],
task = "task.yaml",
visibility = ["//examples/pipelines/..."],
)
Loading

0 comments on commit 5e6e78c

Please sign in to comment.