Currently, the check-pr-title job has a security vulnerability. If you give the PR a bad title, the job can run arbitrary code.
Changes
Fix prompt injection by pulling the PR title as an environment variable.
Also, restricted the job to only pull_request trigger.
Design Decisions
It is better to pull out this job into a separate workflow with a unique trigger, but I chose not to because it is currently only one job.
Checklist
Tests pass
Docs updated
## Description
Currently, the `check-pr-title` job has a security vulnerability. If you give the PR a bad title, the job can run arbitrary code.
## Changes
- Fix prompt injection by pulling the PR title as an environment variable.
- Also, restricted the job to only `pull_request` trigger.
### Design Decisions
- It is better to pull out this job into a separate workflow with a unique trigger, but I chose not to because it is currently only one job.
## Checklist
- [x] Tests pass
- [x] Docs updated
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
Currently, the
check-pr-titlejob has a security vulnerability. If you give the PR a bad title, the job can run arbitrary code.Changes
pull_requesttrigger.Design Decisions
Checklist