permissions_review
Audits GitHub Actions job token permissions, flags unnecessary write access or missing scopes, and prints a least-privilege permissions block per job.
Instructions
Show the effective GITHUB_TOKEN permissions of every job (job-level replaces workflow-level; absent
means the repository default), infer what each job actually needs from the actions and gh/git commands
it uses, flag write access that looks unnecessary and permissions that are missing, and print a
least-privilege permissions: block per job. The inference is heuristic and says when it is partial.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "permissions_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |