Skip to content

chore: pass PR title via env in pr-title-check workflow#3763

Merged
eablack merged 1 commit into
mainfrom
eb/pr-title-check-env
Jun 11, 2026
Merged

chore: pass PR title via env in pr-title-check workflow#3763
eablack merged 1 commit into
mainfrom
eb/pr-title-check-env

Conversation

@eablack

@eablack eablack commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Read the PR title from an environment variable in .github/workflows/pr-title-check.yml instead of inlining ${{ github.event.pull_request.title }} into the shell run: block.
  • Follows GitHub Actions guidance for handling untrusted input from PR metadata.

Type of Change

Patch Updates (patch semver update)

  • chore: Change that does not affect production code

Testing

Steps:

  1. Open this PR and confirm the pr-title-check workflow runs and passes against the conventional-commit title.
  2. (Optional) Push a follow-up commit that temporarily renames the PR to a non-conforming title (e.g. bad title) and verify the check fails as before, then restore the title.

Related Issues

n/a

Read the PR title from an environment variable instead of inlining it
into the run script, following GitHub Actions guidance for handling
untrusted input.
@eablack eablack requested a review from a team as a code owner June 11, 2026 21:06
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2026 21:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2026 21:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2026 21:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests June 11, 2026 21:06 — with GitHub Actions Inactive

@michaelmalave michaelmalave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jdodson jdodson left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@eablack eablack merged commit 96310c3 into main Jun 11, 2026
18 checks passed
@eablack eablack deleted the eb/pr-title-check-env branch June 11, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants