Repository navigation
Switch PR label and title validation workflows to pull_request - #616
Merged
Michael Kubacki (makubacki) merged 1 commit intoOct 28, 2026
Merged
Conversation
The label and PR formatting leaf workflows used `pull_request_target`= so they could use the GitHub App token. They now trigger on `pull_request` without secrets and upload the PR number as a short-lived artifact. New `workflow_run` leaf workflows pick that up and call reusable workflows that hold the token. - Labeler.yml now takes the PR number from the artifact, re-checks the PR state and head SHA through the API, and applies labels. Custom code replaces srvaroa/labeler, which does not support workflow_run. The code evaluates the same type/body rules from the regex config. - Labeler.yml also handles issues events directly, labeling issues when the config sets "issues: True". - PullRequestFormattingValidatorPost.yml is added to post comments for PR formatting issues. The title check itself still fails in the `pull_request` job (secret not needed for that). - The leaf workflows are updated to match the changes made to the files in their synced repos. Signed-off-by: Michael Kubacki <[email protected]>
5 tasks
Michael Kubacki (makubacki)
requested review from
Joey Vagedes (Javagedes),
Aaron (apop5) and
Vineel Kovvuri[MSFT] (vineelko)
October 28, 2026 21:59
Aaron (apop5)
approved these changes
Oct 28, 2026
Joey Vagedes (Javagedes)
approved these changes
Oct 28, 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.
This PR moves two worfklows off the
pull_request_targettrigger topull_request. A complementary PR will be made in mu_basecore as well.The label and PR formatting leaf workflows used
pull_request_targetso they could use the GitHub App token.They now trigger on
pull_requestwithout secrets and upload the PR number as a short-lived artifact. Newworkflow_runleaf workflows pick that up and call reusable workflows that hold the token.pull_requestjob (secret not needed for that).This was tested on my fork in makubacki/mu_basecore#109. An intentional failure due to the PR title to verify the comment could be posted successfully was made there.