Skip to content

Commit d75645b

Browse files
authored
Merge pull request #3222 from github/mbg/upload-lib/post-process
Perform SARIF post-processing independently of upload
2 parents 956c567 + 710606c commit d75645b

File tree

12 files changed

+552
-213
lines changed

12 files changed

+552
-213
lines changed

.github/workflows/__quality-queries.yml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analyze/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
description: The name of the check run to add text to.
77
required: false
88
output:
9-
description: The path of the directory in which to save the SARIF results
9+
description: The path of the directory in which to save the SARIF results from the CodeQL CLI.
1010
required: false
1111
default: "../results"
1212
upload:
@@ -70,6 +70,12 @@ inputs:
7070
description: Whether to upload the resulting CodeQL database
7171
required: false
7272
default: "true"
73+
post-processed-sarif-path:
74+
description: >-
75+
Before uploading the SARIF files produced by the CodeQL CLI, the CodeQL Action may perform some post-processing
76+
on them. Ordinarily, these post-processed SARIF files are not saved to disk. However, if a path is provided as an
77+
argument for this input, they are written to the specified directory.
78+
required: false
7379
wait-for-processing:
7480
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
7581
required: true

lib/analyze-action.js

Lines changed: 86 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post.js

Lines changed: 40 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)