mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
bake: fix potential context entitlements escape
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
@ -20,6 +20,12 @@ func tmpdir(t *testing.T, appliers ...fstest.Applier) string {
|
||||
|
||||
type cmdOpt func(*exec.Cmd)
|
||||
|
||||
func withEnv(env ...string) cmdOpt {
|
||||
return func(cmd *exec.Cmd) {
|
||||
cmd.Env = append(cmd.Env, env...)
|
||||
}
|
||||
}
|
||||
|
||||
func withArgs(args ...string) cmdOpt {
|
||||
return func(cmd *exec.Cmd) {
|
||||
cmd.Args = append(cmd.Args, args...)
|
||||
|
Reference in New Issue
Block a user