Repository navigation
fix(ci): validate PR titles with read-only pull_request permissions - #397
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Missing synchronize events leave pushed revisions without validation and can block merging when the check is required.
1 open issue
What changed in this PR
Moves PR-title validation to a read-only pull_request workflow, avoiding reliance on pull_request_target exceptions.
Changes:
- Switches triggers and reduces permissions to
pull-requests: read. - Removes PR-comment steps while preserving the pinned validation action and concurrency settings.
| File | Description |
|---|---|
.github/workflows/check-pr-title.yml |
Updates the trigger, reduces permissions, and removes commenting. |
Review effort: Balanced
Nan Liu (liunan-ms)
force-pushed
the
liunan/pr-title-check
branch
from
October 21, 2026 00:13
5e2a08b to
5fe9216
Compare
Nan Liu (liunan-ms)
marked this pull request as ready for review
October 21, 2026 00:31
Tobias Brick (tobiasb-ms)
approved these changes
Oct 21, 2026
reuben olinsky (reubeno)
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context
On November 2, 2026, GitHub will automatically enforce a default rule blocking
pull_request_targetworkflows for affected public repositories. The default applies to public repositories without an applicable event policy; enforcement covers affected repositories that were using the defaultpull_request_targetpolicy before general availability.Under that default, the existing PR-title workflow would stop running unless explicitly allowed by an applicable Actions event policy. Switching to
pull_requestavoids depending on such an exception and keeps PR-title validation compatible with the new default.Changes
pull_request_targetwithpull_request, retaining theopened,edited, andreopenedevents.permissions: {}and reduce the validation job topull-requests: read.Validation
git --no-pager diff --check main...HEAD- passed.ruby -r yaml -e 'YAML.load_file(".github/workflows/check-pr-title.yml"); puts "YAML syntax OK"'- passed.zizmorandactionlintwere not run because they are unavailable locally.