Skip to content

Bug: 'before' field is missing when it should not even be used #261

@rschristian

Description

@rschristian

We're using this action in a workflow triggered via workflow_run, using it to report on another action that takes place in our repository. To ensure the correct context, use set both base & ref to ensure the head of a PR is compared against the head of the base branch.

From forks, however, this action is throwing the following warning:

Warning: 'before' field is missing in event payload - changes will be detected from last commit

It then proceeds to mark every single file in the repo as "changed", breaking any attempt at filtering.

I don't see why it'd matter that a 'before' field is missing, we have the commit SHAs this action needs to compare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions