-
Notifications
You must be signed in to change notification settings - Fork 5
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
Static analysis workflow checks not working #36
Comments
I'm not entirely sure I'm following this workflow, likely due to my unfamiliarity with CodeQL. What's the goal? |
The actions/jobs themselves aren't too important (although knowing about code scanning is probably useful). This workflow includes all the static analysis tools, mainly ones that output SARIF files that are uploaded to GitHub's code scanning (although I did try sourcegraph's LSIF but it was taking more work than it seemed to be worth). thunderstore-ui/.github/workflows/static-analysis.yml Lines 36 to 37 in 1ecfb85
The CodeQL job essentially finds common web exploits and sends them to the code scanning tab. This isn't public but I'm not sure on the exact permission it's locked behind (I can't change repo settings but I still have access to it). My intention with the CodeQL check is "If it's a commit to this repo (not a fork), scan it. If not (therefore it must be a PR), make sure it's a PR where the source is a fork (prevents double scanning the same commit since otherwise commits to this repo would be scanned from both Scanning commits in this repo makes sense as they'll all eventually become a PR to thunderstore-ui/.github/workflows/static-analysis.yml Lines 16 to 17 in 1ecfb85
The ESLint job runs ESLint and sends the errors to code scanning. This gives something like: While this is actually an example in the docs (suggesting code scanning is really for any static analysis tools), it being in the security tab and not being public makes it a bit weird. I think we should actually remove this in favour of running ESLint in standard CI, but maybe have in line annotations (example with codecov). I'm not sure if there is already a nice way of doing this but not just having a long list of errors but instead having it in the diff view is a nice way to actually see the issues. As ESLint will be mandatory (related: #33), this isn't a must, just a nice goal in the future if it's not easily doable. |
Example of skipped checks
Checks
thunderstore-ui/.github/workflows/static-analysis.yml
Lines 16 to 17 in 1ecfb85
thunderstore-ui/.github/workflows/static-analysis.yml
Lines 36 to 37 in 1ecfb85
The text was updated successfully, but these errors were encountered: