GPT-5 finding
Workflow grants actions: write at the workflow level (overly broad permissions)
- .github/workflows/messages.yml:20-24
The poll job needs actions: write to dispatch runs, but the run job (which executes model output) inherits the same broad permission. Combined with gh CLI availability, this increases blast radius if prompt injection occurs.
Recommendation
Move to job-level permissions: - poll job: actions: write, contents: read (or write if needed) - run job: contents: write, pull-requests: write; omit actions: write (use actions: read or none) Adjust only where strictly required.