Skip to content

ci: validate PR titles without pull_request_target - #80

Merged
ctreatma merged 2 commits into
mainfrom
ci/validate-pr-no-pull-request-target
Nov 10, 2026
Merged

ctreatma merged 2 commits into
mainfrom
ci/validate-pr-no-pull-request-target

Conversation

@ctreatma

@ctreatma ctreatma commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • validate_pr now triggers on pull_request with read-only permissions and uploads the result (PR number and any error message) as a short-lived artifact.

  • New validate_pr_comment workflow runs on workflow_run, downloads the artifact, and posts or clears the sticky PR comment. It never checks out PR code; the PR number is reduced to digits and the error text is only used as a comment body.

  • Actions are pinned to commit SHAs.

  • .github/CODEOWNERS: add a final /.github/ rule assigning @equinix/governor-devrel-engineering. It is last on purpose, since the last matching pattern wins and earlier globs like *fabricv* also match workflow files.

Same change as equinix/pulumi-equinix#365.

Test plan

  • After merge, open a PR with a non-conventional title and confirm the check fails and the comment appears
  • Fix the title and confirm the comment is removed
  • Confirm a fork PR behaves the same

🤖 Generated with Claude Code

Run the validation on the unprivileged pull_request trigger and move
commenting into a workflow_run workflow that only consumes a small
artifact (PR number and error text) from the validation run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ctreatma
ctreatma requested a review from a team as a code owner November 9, 2026 19:21
tutkat
tutkat previously approved these changes Nov 10, 2026
Add a final CODEOWNERS rule for /.github/ so it overrides the earlier
glob patterns (such as *fabricv*) that also match workflow files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ctreatma
ctreatma merged commit 034fc4b into main Nov 10, 2026
6 checks passed
@ctreatma
ctreatma deleted the ci/validate-pr-no-pull-request-target branch November 10, 2026 19:39
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