Repository navigation
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
Open
Laurent Giovannoni (laugiov) wants to merge 1 commit into
Laurent Giovannoni (laugiov) wants to merge 1 commit into
Conversation
…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.
Laurent Giovannoni (laugiov)
requested review from
ThibaultLanternierFiligran
and
a balanced review from Copilot
December 3, 2026 12:05
There was a problem hiding this comment.
🟢 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
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.
Proposed changes
pull_request, notpull_request_target, which GitHub blocks by default on public repositories from 2 December 2026.pull_requestrun on a PR with a merge conflict, so a PR opened in that state is not labeled until it is fixed. Documented in the workflow headers.pull_request_target(check-linked-issues,integrations-add-to-project,update-linked-issues-on-merge) are unchanged: they need the privileged trigger for fork PRs and are allowed by the repository Actions policy "Enable pull_request_target" (same as in OpenAEV-Platform/injectors).Testing Instructions
event: pull_request, are green, and the job log showsPullRequests: writein the token permissions.git grep pull_request_target -- .githubreturns only the three workflows kept on purpose.Related issues
Checklist