Comments (9)
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!
from pmd-github-action.
analyzeModifiedFilesOnly : false
from pmd-github-action.
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....
from pmd-github-action.
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.
from pmd-github-action.
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.
from pmd-github-action.
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 GITHUB_API_URL
will be set and we don't query api.github.com anymore....
from pmd-github-action.
Hi @adangel , latest update :)
We have mirrored pmd/pmd repo along with releases and tags into our GHES and we were able to pass ther "Error : NOT found" problem, we ended up another problem though which completely different. Im posting here in case you might need to fix the problem
from pmd-github-action.
It seems, the downloaded releases zip file is corrupt. You can try to download manually the URL, that is printed in the debug output (##[debug]Downloading https....
) and verify e.g. with zipinfo
that this is indeed a PMD releases archive.
You can also compare this file with the one on https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.55.0/pmd-bin-6.55.0.zip
The sha256sum of that file should be 1acf96d43cb40d591cacccc1c20a66fc796eaddf69ea61812594447bac7a11d pmd-bin-6.55.0.zip
.
Maybe something went wrong when mirroring pmd/pmd?
Anyway, my PR #175 will use api.github.com to access the latest release.
If you want, you can try out the fix:
- uses: adangel/pmd-github-action@issue-173
from pmd-github-action.
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!
Thanks for testing! 👍
from pmd-github-action.
Related Issues (20)
- Action doesn't find ruleset HOT 2
- Action aborts with: Error: Cannot read property 'split' of undefined HOT 1
- "Error: Not Found" if push event's `before` commit is `0000000000000000000000000000000000000000`
- Support reports in other formats HOT 1
- No annotations created under Windows HOT 2
- [Feature Request] Minimum severity option HOT 3
- "not found" error when no code change
- Annotations are not shown in PR / commit
- Getting Warning in Node version only for PMD HOT 2
- Add inputs to github action for other report types and the name of the output file
- Please publish newer version using node20 you made 2 months ago. Latest version is +10 months stale. Lots of stuff has been added since HOT 2
- Allow the --force-language PMD CLI option HOT 5
- Support equivalent of failurePriority
- Code scanning alert doesn't find file in repository HOT 1
- Code scanning doesn't work well with analyzeModifiedFilesOnly
- No annotations created under Windows HOT 1
- Sourcepath is not applied correctly with analyzeModifiedFilesOnly
- Code scanning doesn't contain all violations from PMD
- PMD version 6.46.0 run check on "Unchanged files with check annotations" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmd-github-action.