Skip to content

ci: Harden labeler workflow, remove unnecessary checkout from pull_request_target job#20637

Open
kevinjqliu wants to merge 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/remove-pull_request_target-checkout
Open

ci: Harden labeler workflow, remove unnecessary checkout from pull_request_target job#20637
kevinjqliu wants to merge 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/remove-pull_request_target-checkout

Conversation

@kevinjqliu
Copy link

Which issue does this PR close?

  • Closes #.

Rationale for this change

This PR removes the checkout step from the labeler workflow and keeps labeling behavior unchanged.

What changes are included in this PR?

The workflow runs on pull_request_target, which has elevated repo context. actions/labeler does not require a local checkout to work with configuration-path; if the file is not on disk, it fetches it via the GitHub API.

Removing checkout reduces attack surface and avoids exposing persisted git credentials to subsequent steps.

Are these changes tested?

Yes, tested on my forked.

I force pushed this change to my fork's main branch, then open a test PR against it. The labeler github action ran successfully on my fork and labeled the PR

Are there any user-facing changes?

No

@github-actions github-actions bot added the development-process Related to development process of DataFusion label Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant