CodeQL Action SARIF Upload Error
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:
- 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.
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.