Skip to content

ci: add Java to CodeQL security analysis#3156

Merged
hengyunabc merged 1 commit intoalibaba:masterfrom
pierluigilenoci:cs/fix-codeql-add-java
Mar 28, 2026
Merged

ci: add Java to CodeQL security analysis#3156
hengyunabc merged 1 commit intoalibaba:masterfrom
pierluigilenoci:cs/fix-codeql-add-java

Conversation

@pierluigilenoci
Copy link
Copy Markdown
Contributor

Summary

The CodeQL workflow currently only scans JavaScript, but Arthas is primarily a Java project (~90% of the codebase). This means the security analysis misses the vast majority of the code.

Changes

  • .github/workflows/codeql-analysis.yml: Add java-kotlin to the CodeQL language matrix
  • Bump actions/checkout from v3 to v4

CodeQL's Autobuild step already supports Maven projects, so no additional build configuration is needed.

Test plan

  • No functional code changes
  • Verify CodeQL successfully analyzes Java code after merge

The CodeQL workflow only scans JavaScript, but Arthas is primarily a
Java project (~90% Java). This means the security analysis misses the
vast majority of the codebase.

Add java-kotlin to the language matrix so CodeQL scans both JavaScript
and Java source code. Also bump actions/checkout to v4.

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
@pierluigilenoci
Copy link
Copy Markdown
Contributor Author

Hi @hengyunabc, @HollowMan6 — this PR adds Java (java-kotlin) to the existing CodeQL security analysis workflow, so Java code gets the same automated security scanning that JavaScript already has. Also updates actions/checkout to v4. Would you be willing to review? Thank you!

@pierluigilenoci
Copy link
Copy Markdown
Contributor Author

Gentle ping — could you take a look at this PR when you get a chance? Happy to address any feedback. Thank you!

@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@hengyunabc hengyunabc merged commit 18c4dc6 into alibaba:master Mar 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants