Skip to content

Commit 47d2341

Browse files
committed
Debug SARIF output
1 parent 2010213 commit 47d2341

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,11 @@ runs:
204204
uses: github/codeql-action/upload-sarif@v2
205205
with:
206206
sarif_file: ${{ inputs.output }}
207+
- name: Upload SARIF as debug artefact
208+
# if we're in debug mode and we got results
209+
if: ${{ hashFiles(inputs.output) != '' && runner.debug == '1' }}
210+
uses: actions/upload-artifact@v2
211+
with:
212+
name: ${{ inputs.output }}
213+
path: ${{ inputs.output }}
214+

0 commit comments

Comments
 (0)