Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 710606c

Browse filesBrowse files
committed
Check that outputPath is non-empty
1 parent f0452d5 commit 710606c
Copy full SHA for 710606c

File tree

Expand file treeCollapse file tree

4 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎lib/analyze-action.js‎

Copy file name to clipboardExpand all lines: lib/analyze-action.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎lib/upload-lib.js‎

Copy file name to clipboardExpand all lines: lib/upload-lib.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎lib/upload-sarif-action.js‎

Copy file name to clipboardExpand all lines: lib/upload-sarif-action.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎src/upload-lib.ts‎

Copy file name to clipboardExpand all lines: src/upload-lib.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ export async function writePostProcessedFiles(
776776
// If there's an explicit input, use that. Otherwise, use the value from the environment variable.
777777
const outputPath = pathInput || process.env[EnvVar.SARIF_DUMP_DIR];
778778

779-
// If we have an output path, write the SARIF file to it.
780-
if (outputPath !== undefined) {
779+
// If we have a non-empty output path, write the SARIF file to it.
780+
if (outputPath !== undefined && outputPath.trim() !== "") {
781781
dumpSarifFile(
782782
JSON.stringify(postProcessingResults.sarif),
783783
outputPath,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.