Skip to content

Commit 9c79f3a

Browse files
committed
a full path to sarif report
1 parent 0fa2265 commit 9c79f3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ runs:
100100
DIKTAT_ARGS=('--config' '${{ inputs.config }}' '--reporter' '${{ inputs.reporter }}')
101101
if [[ '${{ inputs.reporter }}' == 'sarif' ]]
102102
then
103-
DIKTAT_ARGS+=('--output' "${GITHUB_WORKSPACE}/report.sarif")
103+
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/report.sarif')
104104
elif [[ '${{ inputs.reporter }}' == 'checkstyle' ]]
105105
then
106-
DIKTAT_ARGS+=('--output' "${GITHUB_WORKSPACE}/checkstyle-report.xml")
106+
DIKTAT_ARGS+=('--output' '${GITHUB_WORKSPACE}/checkstyle-report.xml')
107107
else
108108
echo "`reporter` should be set to `sarif` or `checkstyle`"
109109
exit 1
@@ -179,7 +179,7 @@ runs:
179179
if: ${{ always() && steps.diktat.outputs.exit-code == 1 && inputs.reporter == 'sarif' }}
180180
uses: github/codeql-action/upload-sarif@v3
181181
with:
182-
sarif_file: ${GITHUB_WORKSPACE}
182+
sarif_file: ${{ github.workspace }}/report.sarif
183183

184184
# Alternatively, when in Checkstyle reporting mode, upload Checkstyle XML
185185
# using `reviewdog`.

0 commit comments

Comments
 (0)