If you are passing secrets via environment variables that are retrieved
by command-line programs, there’s an even easier way to do it – use the
command rule from Atlassian’s bazel-tools repo and its
raw_environment attribute.
For example, yesterday’s code can be simplified to:
1
2
3
4
5
6
7
8
9
10
11
12
13
# WORKSPACEload("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name ="com_github_atlassian_bazel_tools",
# TODO: Change this from a branch reference to a specific commit and# shallow_since branch ="master",
remote ="https://github.com/atlassian/bazel-tools.git",
)
load("@com_github_atlassian_bazel_tools//multirun:deps.bzl", "multirun_dependencies")
multirun_dependencies()