Skip to content

incubator-kie-tools CodeQL scan results are difficult to review #1171

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

Open
jomarko opened this issue May 7, 2024 · 1 comment
Open

incubator-kie-tools CodeQL scan results are difficult to review #1171

jomarko opened this issue May 7, 2024 · 1 comment
Labels
area:tools Issues affecting Apache KIE tooling projects type:tech-debt Things that were left behind an may harm us in the future.

Comments

@jomarko
Copy link

jomarko commented May 7, 2024

We have active CodeQL scans in the apache/incubator-kie-tools repository. The problem I see with this scan can be put into two categories.

Deprecated github action

We use currently codeql-action@v2 (https://github.com/apache/incubator-kie-tools/blob/main/.github/workflows/ci_codeql.yml), that are deprecated (https://github.com/github/codeql-action?tab=readme-ov-file#supported-versions-of-the-codeql-action). The v3 uses node 20, not sure if we are blocked by this ticket (#392) to migrate codeql-actions.

Results

It can be found here https://github.com/apache/incubator-kie-tools/security/code-scanning. As problematic, I see the amount. Currently, more than 400 issues. Such amount of issues makes difficult to assess, what is the actual code quality of the repository. When we take closer look on the reported issues, a lot of issues are related to dev webapps, should we scan all packages of the kie-tools?

@jomarko jomarko added area:tools Issues affecting Apache KIE tooling projects type:tech-debt Things that were left behind an may harm us in the future. labels May 7, 2024
@tiagobento
Copy link

Thanks for reporting this @jomarko! Indeed we haven't been doing a great job keeping our static code analysis in a good shape. I think the first step is to understand how we can take advantage of it, without it becoming a pain. What's the best configuration we can do to CodeQL? How can we make sure those scans are visible to people and that they're producing meaningful suggestions?

I think upgrading it to non-deprecated versions is a first step, and then some cleanup can be done. We can discuss what strategy we want to use moving forward, but I think there are actionable items from this conversation you started already!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:tools Issues affecting Apache KIE tooling projects type:tech-debt Things that were left behind an may harm us in the future.
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants