[Bug]: Unknown bug
CoolPlayLin opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
What happened?
Full log: https://github.com/CoolPlayLin/AutoPublish/actions/runs/8000864953/job/21850993508
Are you using a classic or a fine-grained token?
@russellbanks I have the same problem on komac 2.1.0:
PS C:\Users\<user>\Downloads> komac new
…
> Would you like to make a pull request for <package>? Yes
Error:
0: <gh_user> does not have the correct permissions to execute `CreateRef`
1: No reference was returned after creating <package>
I'm using the classic token.
Classic token and nightly version @russellbanks
@russellbanks when I tried to create a manifest using wingetcreate, I got this error: "Unable to create a reference to the forked repository. This can be caused when the forked repository is behind by too many commits. Sync your fork and try again." If komac reports the same problem, it is worth adding a similar explanation to make it clear what needs to be done.
I think that's a permission issue. When I checked all of the permissions options, it works again
@russellbanks I think Komac needs more permissions instead of only public_repo access
@russellbanks I received the same error, but once I enabled all the permission for the token, it no longer appeared.