Skip to content

Commit 902a8bd

Browse files
author
Dave Bartolomeo
committed
Add Actions extractor to build
1 parent 3c9e193 commit 902a8bd

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

actions/BUILD.bazel

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
2+
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
3+
4+
package(default_visibility = ["//visibility:public"])
5+
6+
[
7+
codeql_pack(
8+
name = "-".join(parts),
9+
srcs = [
10+
"//actions/extractor",
11+
],
12+
pack_prefix = "/".join(parts),
13+
)
14+
for parts in (
15+
[
16+
"experimental",
17+
"actions",
18+
],
19+
["actions"],
20+
)
21+
]

actions/extractor/BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
load("//misc/bazel:pkg.bzl", "codeql_pkg_files", "strip_prefix")
2+
3+
codeql_pkg_files(
4+
name = "extractor",
5+
srcs = [
6+
"codeql-extractor.yml",
7+
] + glob(["tools/**"]),
8+
strip_prefix = strip_prefix.from_pkg(),
9+
visibility = ["//actions:__pkg__"],
10+
)

0 commit comments

Comments
 (0)