Skip to content

ci(github): run the PR automation on pull_request instead of pull_request_target (#397) - #398

Open
Laurent Giovannoni (laugiov) wants to merge 1 commit into
mainfrom
ci/pull-request-trigger
Open

Laurent Giovannoni (laugiov) wants to merge 1 commit into
mainfrom
ci/pull-request-trigger

Conversation

@laugiov

@laugiov Laurent Giovannoni (laugiov) commented Dec 3, 2026 •

Copy link
Copy Markdown

Proposed changes

Testing Instructions

  1. On this PR: the two workflows run with event: pull_request, are green, and the job log shows PullRequests: write in the token permissions.
  2. Open a throwaway PR from a branch of this repository with an unsigned commit: Check Signed Commits is red and posts its comment.
  3. After merge: git grep pull_request_target -- .github returns only the three workflows kept on purpose.

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality
  • For bug fix -> I implemented a test that covers the bug

…uest_target (#397)

GitHub blocks pull_request_target by default on public repositories from 2 December 2026. Auto Label and Check Signed Commits now run on pull_request. Same-repo PRs keep their write token from the declared permissions; fork PRs, whose token is read-only, are skipped where a write is needed.

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the workflow trigger and fork-handling changes.

No open issues 🎉

What changed in this PR

Moves two PR automation workflows to pull_request, while retaining privileged triggers for the three workflows that need them.

Changes:

  • Switches Auto Label and Check Signed Commits to pull_request.
  • Skips automatic labeling for fork PRs.
  • Documents fork-token restrictions and the labeling limitation for conflicted PRs.
File Description
.github/​workflows/​openaev-check-signed-commit.yml Changes the trigger and documents fork comment restrictions.
.github/​workflows/​openaev-auto-label.yml Changes the trigger, skips forks, and documents merge-conflict limitations.

Review effort: Balanced

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.

ci(github): stop relying on pull_request_target for the PR automation

2 participants