From e666e1efbf0737cf77c15aa1dd0be374dff008c6 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Fri, 15 Dec 2023 11:22:28 +0100 Subject: [PATCH] fix to relsourcepath --- .github/actions/publish-spotbugs-reports/dist/index.js | 3 +++ .github/actions/publish-spotbugs-reports/index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/actions/publish-spotbugs-reports/dist/index.js b/.github/actions/publish-spotbugs-reports/dist/index.js index 71147533..4582bee4 100644 --- a/.github/actions/publish-spotbugs-reports/dist/index.js +++ b/.github/actions/publish-spotbugs-reports/dist/index.js @@ -35355,6 +35355,9 @@ function bugAnnotation(bug) { const title = bug['@_bad_practice'] const message = bug.ShortMessage const rawDetails = bug.LongMessage + const path = bug.Method.SourceLine.hasOwn('@_relSourcePath') + ? bug.Method.SourceLine['@_relSourcepath'] + : bug.Method.SourceLine['@_sourcepath'] return { title: title, message: message, diff --git a/.github/actions/publish-spotbugs-reports/index.js b/.github/actions/publish-spotbugs-reports/index.js index 94e63f92..42254df6 100644 --- a/.github/actions/publish-spotbugs-reports/index.js +++ b/.github/actions/publish-spotbugs-reports/index.js @@ -9,6 +9,9 @@ function bugAnnotation(bug) { const title = bug['@_bad_practice'] const message = bug.ShortMessage const rawDetails = bug.LongMessage + const path = bug.Method.SourceLine.hasOwn('@_relSourcePath') + ? bug.Method.SourceLine['@_relSourcepath'] + : bug.Method.SourceLine['@_sourcepath'] return { title: title, message: message,