Skip to content

bug: owner notification: changed-files step fails on pull_request_target (fork PRs) #754

@samzong

Description

@samzong

Describe the bug

The “Get changed files” step ( tj-actions/changed-files@v46 ) fails with Not Found - refs#get-a-reference on fork PRs, because it tries to read head refs from the target repo.

Fix: enable use_rest_api: true while keeping base_sha and sha so changes are fetched via REST. This removes the cross-repo ref special case and avoids rate-limit concerns.

To Reproduce

every new PR for now

Image

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions