mobile-app icon indicating copy to clipboard operation
mobile-app copied to clipboard

CodeQL Action SARIF Upload Error

Open ivan-magda opened this issue 4 months ago • 1 comments

Error Message:
The CodeQL Action does not support uploading multiple SARIF runs with the same category. Please update your workflow to upload a single run per category.

Steps to Reproduce:

  1. Run the CI workflow as in this link.

Cause:
This issue occurs because the upload-sarif step in the ktlint job tries to upload the whole shared/build/reports/ktlint directory, which can contain multiple SARIF files for the same category.

Suggested Solution:
Modify the workflow to upload only a single SARIF file per category (e.g., ktlintCheck.sarif), or merge all relevant SARIF files into one before uploading.
For more details, see the workflow at commit 6be66e90e45938aebb286e88486039aa02915c6d.

ivan-magda avatar Sep 17 '25 00:09 ivan-magda

This issue is stale because it has been open for 30 days with no activity. If this is still relevant, please add a comment or remove the "stale" label. Otherwise, it will be closed in 7 days. To opt out, add the "no-stale" label.

github-actions[bot] avatar Oct 17 '25 02:10 github-actions[bot]