Skip to content

Comments

HDDS-13777. Change label-pr workflow to avoid pull_request_target#9808

Open
adoroszlai wants to merge 1 commit intoapache:masterfrom
adoroszlai:HDDS-13777
Open

HDDS-13777. Change label-pr workflow to avoid pull_request_target#9808
adoroszlai wants to merge 1 commit intoapache:masterfrom
adoroszlai:HDDS-13777

Conversation

@adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Feb 23, 2026

What changes were proposed in this pull request?

Currently the pull-request-labeler workflow is executed on pull_request_target, which is allowed for any user. Other PR workflows are triggered by pull_request, and need to be manually approved by a committer for PRs opened by non-committers. Such PRs may show "all checks passed" (green checkmark) even if only label-pr has been executed, other workflows are pending. This is confusing and we have seen some PRs being merged without regular CI checks due to this.

This PR changes the pull-request-labeler workflow (renamed to label-pull-requests) to run on schedule instead of pull_request_target. It can also be started manually (by committers) for easier testing.

It replaces actions/labeler with GitHub CLI for adding labels. The action expects input pr-number one item per line, which I couldn't achieve with either GITHUB_OUTPUT or GITHUB_ENV.

https://issues.apache.org/jira/browse/HDDS-13777

How was this patch tested?

Tested in my fork with two pull requests (targeted at master, so temporarily added a matrix item for master):

Only manual triggering was tested, scheduled runs were not triggered for some reason (does not seem to be a unique problem, see https://github.com/orgs/community/discussions/185828).

Scheduled update of zdu PRs:
https://github.com/adoroszlai/ozone/actions/runs/22305349041/job/64523042231#step:3:10

@adoroszlai adoroszlai self-assigned this Feb 23, 2026
@adoroszlai adoroszlai requested a review from errose28 February 23, 2026 11:28
Copy link
Contributor

@errose28 errose28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement @adoroszlai.

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.

2 participants