⌨️Permission Rule Wildcard
Also known as Bash(git log *), Bash(ls:*)
A star in a rule that stands for any text, and where it goes matters.
Think of it like
It is like a blank in a form. Anything can go in that one spot.
Example
Lucy first allowed Bash(git *). That let git push run too. She swaps it for Bash(git log *) and Bash(git diff *).
Why it matters
One star in the wrong place can allow far more than you meant.
Definition
Example code
json
{
"permissions": {
"allow": ["Bash(git log *)", "Bash(git diff *)"]
}
}Common mistake
Key takeaways
- 1Star is any text. Spaces too.
- 2After the subcommand. git log *.
- 3Space counts. ls * vs ls*.