-
Notifications
You must be signed in to change notification settings - Fork 5
Action fails with HttpError: Not Found
in v1.3.3 and v2
#354
Comments
Thanks for the report @vpicone. It seems the error is due to the fact that the Pull Requests come from a fork. Unfortunately for us, GitHub has put restrictions on the capabilities of Actions in the context of a fork for security. I'm working v2 in an attempt to find a solution for this exact problem, but I can't guarantee it will work. I'll be sure to let you know if I find a way to make this Action work on Pull Requests from forks! In the meanwhile, If you want to help out, you can try configuring the Action with a Personal Access Token of a user that has write access to the target repository. In v1 you may be able to do that by providing the PAT for the |
Ahh!! That makes so much sense. Looking at the Calibre image processing action, they include a disclaimer for this exact issue. I wonder if it would be helpful to include a similar disclaimer so folks don't bang their head on their keyboard for 6 hours like I did haha. |
Fair enough, this Action already gives you a more descriptive error if you try to use the |
@ericcornelissen right on thank you. I'll close this out since it's already on your v2 radar. |
Quick update: I was not able to get v1 working with Pull Requests from forks using a Personal Access Token (even though the disclaimer you mentioned suggested to me this is possible, from calibreapp/image-actions#53 it seems that it would require a PAT on the fork which I didn't try and is not a solution that would be suitable to me). With that in mind I will add a disclaimer to the README that forks are not supported. Regarding v2, |
This removes the need for the at-actions/github client enitrely, the reasoning for this relates to [1]. This commit works towards a minimal GitHub Actions Action that runs SVGO. In later iterations the client may be added back but it is important to remember the following: the client is very limited when running in the context of a Pull Request from a fork - it cannot, in the context of this commit, read comments on the Pull Request or post a comment to a Pull Request. -- 1. #354
Bug Report
1.3.3
andv2
Description
In
v1.3.3
, action fails witherror: action failed with error 'HttpError: Not Found'
In
v2
, the error is slightly more specific:Failed runs
v1.3.3: https://github.com/carbon-design-system/design-language-website/runs/2440834523
v2: https://github.com/carbon-design-system/design-language-website/pull/937/checks?check_run_id=2440879827
Let me know if I can provide any more context or try some things out!
The text was updated successfully, but these errors were encountered: