Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancelling workflow does not work with forks #47

Closed
dkroenke opened this issue Dec 23, 2020 · 2 comments
Closed

Cancelling workflow does not work with forks #47

dkroenke opened this issue Dec 23, 2020 · 2 comments

Comments

@dkroenke
Copy link

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?

@pllim
Copy link
Contributor

pllim commented Dec 23, 2020

Hello. I am just passing by and noticed this issue, and I wonder if you could create your own secret token (https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) on your fork and pass it to this action, instead of using the default token. 💭

@styfle styfle closed this as completed Dec 29, 2020
@pllim
Copy link
Contributor

pllim commented Jan 26, 2021

Encountered this same error but under a slightly different circumstance, which used to work. I have the cancel action set up under pull_request event, and it used to cancel duplicate workflow in a PR opened from a fork. But as of 2021-01-26, that no longer seems to work; instead, I get this error. If you know of a workaround, please let me know. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants