Skip to content

Commit 00a6e13

Browse files
committed
Tweak SARIF skipping logs
1 parent 25c8db9 commit 00a6e13

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

lib/analyze-action.js

Lines changed: 3 additions & 1 deletion
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: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-lib.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

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

src/upload-lib.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ async function uploadPayload(
362362
actionsUtil.getTemporaryDirectory(),
363363
"payload.json",
364364
);
365-
logger.info(`SARIF upload disabled. Saving to ${payloadSaveFile}`);
365+
logger.info(
366+
`SARIF upload disabled via environment variable. Saving to ${payloadSaveFile}`,
367+
);
366368
logger.info(`Payload: ${JSON.stringify(payload, null, 2)}`);
367369
fs.writeFileSync(payloadSaveFile, JSON.stringify(payload, null, 2));
368370
return "dummy-sarif-id";

src/upload-sarif-action.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ async function run() {
114114

115115
// We don't upload results in test mode, so don't wait for processing
116116
if (shouldSkipSarifUpload()) {
117-
core.debug("SARIF upload disabled. Waiting for processing is disabled.");
117+
core.debug(
118+
"SARIF upload disabled via environment variable. Waiting for processing is disabled.",
119+
);
118120
} else if (actionsUtil.getRequiredInput("wait-for-processing") === "true") {
119121
if (codeScanningResult !== undefined) {
120122
await upload_lib.waitForProcessing(

0 commit comments

Comments
 (0)