Skip to content

Migrate workflows away from pull_request_target #26406

Open

Description

@Jefffrey

A safer replacement for pull_request_target

From November 2026, the pull_request_target trigger is disabled for ASF repositories. Projects still using it should migrate to the pattern below.

See warning here:

Workflow execution policy warning (evaluate mode): .github/workflows/labeler.yml#L1
On November 2, 2026, GitHub will restrict pull_request_target on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target

on:
pull_request_target:
types:
- opened
- edited
- synchronize

on:
pull_request_target:
types:
- closed
branches:
- main

Activity

  1. Jefffrey commented on Oct 16, 2026

    @Jefffrey
    ContributorAuthor

    There are some typical tasks done wit pull_request_target - for example labeling PRs with https://github.com/actions/labeler. Those could be often replaced with GitHub Apps - for example there is a "Boring Cyborg" GitHub App: https://github.com/kaxil/boring-cyborg that has similar functionality (among others). Also Boring Cyborg could be extended if some functionalities are missing. PRs are most welcome.

    Airflow uses it:

  2. Jefffrey commented on Nov 4, 2026

    @Jefffrey
    ContributorAuthor

    Update: date seems to shift from November 2 to December 2

    Workflow execution policy warning (evaluate mode): .github/workflows/labeler.yml#L1
    On December 2, 2026, GitHub will restrict pull_request_target on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target

    https://github.com/apache/datafusion/actions/runs/41760724526

  3. self-assigned this
    on Nov 4, 2026
  4. kumarUjjawal commented on Nov 4, 2026

    @kumarUjjawal
    Contributor

    I forgot about #26683

  5. andygrove commented on Nov 4, 2026

    @andygrove
    Member

    Other DataFusion subprojects also use pull_request_target. Tracking issues:

    The python, java, iceberg, site, and testing repos don't use it.

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

Metadata

Metadata

Assignees

Labels

development-processRelated to development process of DataFusion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions