-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can't run action on GHES #173
Comments
|
I think the message "Error: Not Found" is the response from github API when determining the latest PMD version. The action tries to request https://api.github.com/repos/pmd/pmd/releases/latest - which seems to have failed. We definitely can improve the error message here... Does this problem persist? Maybe it was just a temporary problem.... |
Hey @adangel thanks for quick response, unfortunately it seems like a persistent but what you have said triggered a point, so im running the github action on enterprise instance where we have self-hosted runners , im suspecting , maybe the endpoint that you mentioned is not reachable under the self-hosted runner. Sounds quite unlikely but , it might be the root cause. |
Hi @adangel I could curl the url https://api.github.com/repos/pmd/pmd/releases/latest from our self hosted runner. But we get that Not Found error persistently. |
Hm... I'm having a suspicion, what's happening here: We use the "hydrated" github client from the actions-toolkit. "hydrated" means, it uses not necessarily api.github.com as baseurl, but your GHES url - and on your github enterprise server, there is no pmd/pmd repository. I think, we use this url: https://github.com/actions/toolkit/blob/457303960f03375db6f033e214b9f90d79c3fe5c/packages/github/src/internal/utils.ts#L23-L25 In case of GHES, the environment variable |
Hi @adangel , latest update :) |
By the way, i have already tried the fix that you have just created, it is working like a charm. Thank you. All errors are gone! |
It seems, the downloaded releases zip file is corrupt. You can try to download manually the URL, that is printed in the debug output ( The sha256sum of that file should be Maybe something went wrong when mirroring pmd/pmd? Anyway, my PR #175 will use api.github.com to access the latest release. - uses: adangel/pmd-github-action@issue-173 |
Thanks for testing! 👍 |
I have seen the similar problem that was already raised but quite unsure if those are identical so that is why i wanted to report it.
Im receiving the error below.
And here is the my action YML. Please advise.
The text was updated successfully, but these errors were encountered: