funilrys / PyFunceble

The tool to check the availability or syntax of domain, IP or URL.
https://pyfunceble.github.io
Apache License 2.0
289 stars 44 forks source link

BUG: Dead-hosts cannot run scheduled Actions #324

Closed bigdargon closed 1 year ago

bigdargon commented 1 year ago

Description

Scheduled trigger action not working https://github.com/bigdargon/hostsVN-dead-hosts/actions/runs/3561953313/jobs/5983659215

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.github.com/repos/hostsVN-dead-hosts/hostsVN-dead-hosts/actions/workflows

Link above error not found, I try this link it works https://api.github.com/repos/bigdargon/hostsVN-dead-hosts/actions/workflows

When I read the Github Actions documentation for example /repos/{owner}/{repo}/actions/workflows

But in the code in the Dead-hosts repo, use this link https://api.github.com/repos/{repo}/actions/workflows https://github.com/dead-hosts/infrastructure-launcher/commit/72c2786c833c0301745784ba779dc8d4a8b5c497#diff-c774146694b1184114e1ce49605d0a016bfd6a7c7bfcc041ca5d0110d0e1285cR314

Please check this out. Thank you!

funilrys commented 1 year ago

Hi @bigdargon ,

AFAIK this has been fixed in https://github.com/dead-hosts/infrastructure-launcher/commit/a412f1c0404fbb698d0a5daef1504f106ee1e918 which was deployed as v2.2.6.

Can you please confirm that you are running the launcher v2.2.6 ?

Cheers!

bigdargon commented 1 year ago

@funilrys Action cannot run https://github.com/bigdargon/hostsVN-dead-hosts/actions/runs/3607138469/jobs/6078961344#step:7:40

The most recent action added the token itself to the “info.json” file. And github automatically revoked the token https://github.com/bigdargon/hostsVN-dead-hosts/commit/3e019c67cd5bcb303146c9305c8576ff5e73c55d

P/s: Maybe all your dead-host repos have been automatically revoked all tokens

funilrys commented 1 year ago

@funilrys Action cannot run https://github.com/bigdargon/hostsVN-dead-hosts/actions/runs/3607138469/jobs/6078961344#step:7:40

Issue fixed through: https://github.com/dead-hosts/infrastructure-launcher/commit/44776658fcf4da1b1ae182db929ec6f3d310db90

P/s: Maybe all your dead-host repos have been automatically revoked all tokens

Yeah, just saw that. I will have a long night ...

funilrys commented 1 year ago

@bigdargon Thanks for reporting and sorry for reacting so late. This issue should be fixed by the infrastructure-launcher v2.2.7 which was deployed within the last 10 minutes.

Stay safe and healthy!

funilrys commented 1 year ago

Closing. Feel free to reopen if something is still wrong.

funilrys commented 1 year ago

I discovered another issue. Reopening.

bigdargon commented 1 year ago

@funilrys Good job! Many thanks for fixing it!

P/s: I tried running it again and the launcher added the github token to the file “info.json”

funilrys commented 1 year ago

That's the issue I found.

funilrys commented 1 year ago

Solution tested. Issue fixed.