Appearance
SEC513 / MD-GH-WORKFLOW-RUN-ALLOWED-TOOLS
SEC513 flags AI-native markdown frontmatter when allowed-tools grants blanket gh workflow run dispatch authority.
Why It Matters
gh workflow run can dispatch GitHub Actions workflows remotely. In shared AI-native markdown guidance that is broader than most teams want to advertise as default agent authority.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown surface
- the path is not fixture-like
- frontmatter
allowed-toolsorallowed_toolscontains the exact tokenBash(gh workflow run:*)
Clean Cases
These stay clean:
- narrower inspection grants such as
Bash(gh workflow view:*) - markdown surfaces without blanket workflow-dispatch grants
- fixture-like examples under test or fixture paths
Example Trigger
yaml
---
allowed-tools:
- Bash(gh workflow run:*)
---Safer Example
yaml
---
allowed-tools:
- Bash(gh workflow view:*)
---How To Fix
Remove shared gh workflow run tool grants or replace them with narrower reviewed commands that keep workflow dispatch under explicit user control.