[[rules]]
action = "allow"
command = "git"
subcommands = ["status", "log", "diff", "show", "branch", "stash", "tag", "remote"]
[[rules]]
action = "deny"
command = "git"
subcommand = "push"
flags = ["--force", "--force-with-lease", "-f"]
message = "Use --force-with-lease on feature branches only"
[rules.when]
branch = { eq = "main" }
[[rules]]
action = "ask"
command = "git"
subcommand = "push"
[[rules]]
action = "allow"
command = "docker"
subcommands = ["ps", "images", "inspect", "logs", "version"]
[[rules]]
action = "ask"
command = "docker"
subcommand = "run"
message = "Review the container image and flags"
[[rules]]
action = "deny"
command = "curl"
flags = ["-k", "--insecure"]
message = "Do not disable certificate verification"
[[rules]]
action = "ask"
command = "npm"
subcommand = "install"
message = "Verify package name and source"