Skip to content

ci(spotbugs): publish one SARIF run per code-scanning category - #681

Merged
adamw7 merged 1 commit into
mainfrom
claude/github-actions-workflow-fix-7owrp1
Aug 25, 2026
Merged

ci(spotbugs): publish one SARIF run per code-scanning category#681
adamw7 merged 1 commit into
mainfrom
claude/github-actions-workflow-fix-7owrp1

Conversation

@adamw7

@adamw7 adamw7 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

The weekly SpotBugs job gathered every module's spotbugsSarif.json into
one directory and uploaded it under the single category spotbugs. Each
run names the same SpotBugs tool driver and carried no automation id, so
code scanning saw seven runs it could not tell apart in one delivery and
refused the upload: "The CodeQL Action does not support uploading
multiple SARIF runs with the same category."

Stamp each file's runs with the module's own automationDetails.id
(spotbugs/<module>/) while collecting them, which is what the category
input sets and what code scanning keys an analysis on. upload-sarif fills
that id in only where none is set, so the per-module ids survive and the
category input is no longer needed.

The module reports stay in one upload and one job; the findings keep
their repository-relative paths, so attribution is unchanged.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01L3wQdJ9u1p1KkcHM7wfc1n

The weekly SpotBugs job gathered every module's spotbugsSarif.json into
one directory and uploaded it under the single category `spotbugs`. Each
run names the same SpotBugs tool driver and carried no automation id, so
code scanning saw seven runs it could not tell apart in one delivery and
refused the upload: "The CodeQL Action does not support uploading
multiple SARIF runs with the same category."

Stamp each file's runs with the module's own automationDetails.id
(`spotbugs/<module>/`) while collecting them, which is what the category
input sets and what code scanning keys an analysis on. upload-sarif fills
that id in only where none is set, so the per-module ids survive and the
category input is no longer needed.

The module reports stay in one upload and one job; the findings keep
their repository-relative paths, so attribution is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L3wQdJ9u1p1KkcHM7wfc1n
@adamw7
adamw7 merged commit 3d7c917 into main Aug 25, 2026
1 check passed
@adamw7
adamw7 deleted the claude/github-actions-workflow-fix-7owrp1 branch August 25, 2026 06:49
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.

2 participants