-
Notifications
You must be signed in to change notification settings - Fork 2
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
Potential workaround for using workflow with forks #1
Comments
Hi @efb4f5ff-1298-471a-8973-3d47447115dc FYI this repo is not being worked on because it doesn't support PRs opened from forks. In fact, I can see you've had this issue when running it in your app (see here) (node:[15](https://github.com/FreeTubeApp/FreeTube/runs/5958363146?check_suite_focus=true#step:2:15)35) UnhandledPromiseRejectionWarning: HttpError: Resource not accessible by integration
at /home/runner/work/_actions/danilo-delbusso/pr-review-labeller/v1.1.1/node_modules/@octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runAction (/home/runner/work/_actions/danilo-delbusso/pr-review-labeller/v1.1.1/index.js:73:20)
(node:1535) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1535) [DEP00[18](https://github.com/FreeTubeApp/FreeTube/runs/5958363146?check_suite_focus=true#step:2:18)] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. If you're using If you're planning to support PRs opened from forks, you'll need to create an ad-hoc token from the repository settings, and give it: read permissions for the PRs, and readwrite permissions for the labels. GitHub doesn't offer this level of granularity in regards to permissions, so you'll likely give access to much more. Please read the docs carefully. Otherwise, you can enable the option to Send write tokens to workflows from pull requests. However, this is a high risk option, as described in the docs. See this comment for more information: xenserver/xenadmin#2875 (comment) |
You're welcome @danilo-delbusso :)
Thank you for all the information u have provided. We'll evaluate further internally if we want to create the token and take a risk with it. |
Hi @danilo-delbusso so we tried testing it out with creating a token like u suggested but it just doesnt seems to be working. We even tried to give all permission possible to the token but that also didnt work. Edit: did u got it working like this or with another configuration? If so i would really like to know how. |
Hi @efb4f5ff-1298-471a-8973-3d47447115dc I did not test it I'm afraid. |
Hi @danilo-delbusso thank you for ur reply
|
Hi @efb4f5ff-1298-471a-8973-3d47447115dc Error seems to be related to another action, not the one in this repo. Looks like I'd be happy to make changes to this one if you're encountering errors or similar. |
My apologies @danilo-delbusso i had send the wrong log. So the previous workflow (https://github.com/Naturalclar/issue-action) that i published the log of does work with the provided workaround but gives the error. Your workflow unfortunately gives me the same error as before and does not work. I have a hunch why the previous workflow does work and yours doesn't. On the previous workflow i first used edit: i can confirm that the issue is related to |
Hi @efb4f5ff-1298-471a-8973-3d47447115dc thanks for looking into it yourself. I have updated the action. You can use v1.2.3. It supports the use of either I haven't tested it with the workaround you're using, so if you're encountering issues please let me know and I'll see what I can do |
Hi @danilo-delbusso, I've updated the workflow and i unfortunately get this error.
This is how i set up the
The only things modified are the
In order to let this workflow run successfully we also need a dummy workflow
If u want to check out a workflow that does work this way u can use my
dummy workflow
Edit: i also want to note that i didnt change anything in our repo settings related to the links u provided. It is all set to default. |
@efb4f5ff-1298-471a-8973-3d47447115dc I am happy to take a look but you might have to wait a couple of weeks as I am quite busy at work lately. Feel free to send a reminder here or via mail. If you want to submit a PR, I'd be happy to review it, too. |
@danilo-delbusso i have no problem with waiting :) |
Hi @danilo-delbusso just sending u a ping as a reminder of this issue. |
Hi there,
i just wanted to thank you for creating this awesome workflow! It perfectly fits our usecase.
I hope u have a nice day!
The text was updated successfully, but these errors were encountered: