fix: check-pr-title job has prompt injection #18

Merged
mvhutz merged 1 commits from fix/prompt-injection-pr-title into main 2026-04-03 14:47:01 +00:00
Owner

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

  • 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
mvhutz added 1 commit 2026-04-03 14:44:30 +00:00
fix: pr-title job has prompt injection
All checks were successful
CI / Check PR Title (pull_request) Successful in 19s
CI / Go Lint (pull_request) Successful in 37s
CI / Makefile Lint (pull_request) Successful in 35s
CI / Markdown Lint (pull_request) Successful in 22s
CI / Unit Tests (pull_request) Successful in 34s
CI / Fuzz Tests (pull_request) Successful in 1m6s
CI / Mutation Tests (pull_request) Successful in 1m18s
39c2f044bc
- Also, only run on PR template.
mvhutz merged commit ed30a4fc7c into main 2026-04-03 14:47:01 +00:00
mvhutz deleted branch fix/prompt-injection-pr-title 2026-04-03 14:47:01 +00:00
Sign in to join this conversation.