Skip to content

Cancelling workflow does not work with forks #47

@dkroenke

Description

@dkroenke

Hi,
when trying to integrate the action into an open-source project i got the following log:

Found workflow_id: ["1234"]
Found 6 runs total.
Found 2 runs in progress.
Cancelling another run:  {
  id: 1234,
  head_sha: '1234',
  status: 'in_progress'
}
Error while cancelling workflow_id 1234: Resource not accessible by integration
Cancel Complete.

Background is that i try to integrate the action from a fork into the main repo. The action is not resulting into an error state.
It seems that the creator of the PR is not allowed to fetch the status of the workflows running in the main repo due to access restrictions. Is for forked projects maybe a solution available?

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