Open razzeee opened 10 months ago
Any idea what I need to do? I see GH_TOKEN in the repository security settings, but it hasn't changed that I'm aware of.
I'm not sure, but aren't tokens expiring? Maybe just create a new one and set it?
@rectifyer
@rectifyer
@razzeee I updated the EMAIL and GH_TOKEN with newly generated values.
Thank you
@rectifyer can you check if that token has public_repo
like https://github.com/xbmc/action-kodi-addon-submitter?tab=readme-ov-file#gh_token suggests?
I believe it has the correct permissions. However, this refers to GITHUB_TOKEN instead of GH_TOKEN.
Yeah, the name mismatching like that would be a problem
@razzeee I believe the GITHUB_TOKEN is automatically created, so you should be able to just use it.
@razzeee I've never actually used actions before. I re-ran it with debug logging and the 403 seems related to POSTing to one of the xbmc repos.
addon-submitter - INFO: Getting addon.xml file content
urllib3.connectionpool - DEBUG: Starting new HTTPS connection (1): api.github.com:443
urllib3.connectionpool - DEBUG: [https://api.github.com:443](https://api.github.com/) "GET /repos/razzeee/repo-scripts?type=all HTTP/1.1" 200 None
addon-submitter - INFO: Creating addon branch "matrix"...
addon-submitter - INFO: Addon branch "matrix" created successfully.
addon-submitter - INFO: Checking pull request...
urllib3.connectionpool - DEBUG: Starting new HTTPS connection (1): api.github.com:443
urllib3.connectionpool - DEBUG: [https://api.github.com:443](https://api.github.com/) "GET /repos/xbmc/repo-scripts/pulls?head=razzeee%3Ascript.trakt%40matrix&base=matrix HTTP/1.1" 200 2
addon-submitter - INFO: Submitting pull request...
urllib3.connectionpool - DEBUG: Starting new HTTPS connection (1): api.github.com:443
urllib3.connectionpool - DEBUG: [https://api.github.com:443](https://api.github.com/) "POST /repos/xbmc/repo-scripts/pulls HTTP/1.1" 403 None
addon-submitter - DEBUG: Pull request URL: https://api.github.com/repos/xbmc/repo-scripts/pulls
Here is what I ended up doing:
XMBC_REPO
with no expiration.XMBC_REPO
action variable under the script.trakt project.XBMC_REPO
v3.6.8
Hopefully that did what it is supposed to do. I'm not quite sure if it will just work when you tag a new release, or if you need to create your own token and I need to use that in the script.trakt repo.
Thanks, glad it finally worked
@rectifyer
I guess it still doesn't work?
https://github.com/trakt/script.trakt/actions/runs/9238071115/job/25415742582
Looking at it again, it start to feel like GITHUB_TOKEN vs GH_TOKEN was done deliberately. And we shouldn't have changed it. Probably used to have a fixed user/token and not a changing one based on who releases.
We probably need to fork https://github.com/xbmc/repo-scripts/ with the trakt org for the script to work. https://github.com/trakt/script.trakt/actions/runs/9330076737/job/25683262621
Hey @rectifyer can you check the github tokens used for https://github.com/trakt/script.trakt/actions/runs/6113115321/job/16591958743
They might be outdated/expired