Skip to content

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

Merged
milenkovicm merged 1 commit intoapache:mainfrom
kevinjqliu:patch-2
Mar 3, 2026
Merged

ci: Harden labeler workflow, remove unnecessary checkout from pull_request_target job#1487
milenkovicm merged 1 commit intoapache:mainfrom
kevinjqliu:patch-2

Conversation

@kevinjqliu
Copy link
Contributor

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.

Tested in apache/datafusion#20637

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 there any user-facing changes?

No

@milenkovicm
Copy link
Contributor

thanks @kevinjqliu and @martin-g

@milenkovicm milenkovicm merged commit fef8918 into apache:main Mar 3, 2026
15 checks passed
@kevinjqliu kevinjqliu deleted the patch-2 branch March 3, 2026 18:19
@milenkovicm
Copy link
Contributor

@kevinjqliu when you're into github actions, would you be interested in adding /take and "close pr after predefined inactivity" like there is in datafusion, it would be useful ?
thanks a lot

@kevinjqliu
Copy link
Contributor Author

@milenkovicm
Copy link
Contributor

if that is what it takes :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants