Appearance
SEC530 / CLAUDE-GH-API-PATCH-PERMISSION
SEC530 flags shared Claude settings when permissions.allow grants blanket GitHub CLI API mutation authority through gh api --method PATCH.
Why It Matters
gh api --method PATCH is a generic remote mutation path against GitHub resources. In shared committed settings that is broader than most teams actually need and harder to review than narrower workflow-specific subcommands.
Trigger Shape
- committed shared Claude settings surface
permissions.allowcontains the exact tokenBash(gh api --method PATCH:*)
Safer Example
json
{
"permissions": {
"allow": ["Bash(gh api --method GET:*)", "Read(*)"]
}
}