mirror of
https://github.com/github/codeql-action.git
synced 2026-04-28 18:08:53 +00:00
Tweak SARIF skipping logs
This commit is contained in:
+3
-1
@@ -362,7 +362,9 @@ async function uploadPayload(
|
||||
actionsUtil.getTemporaryDirectory(),
|
||||
"payload.json",
|
||||
);
|
||||
logger.info(`SARIF upload disabled. Saving to ${payloadSaveFile}`);
|
||||
logger.info(
|
||||
`SARIF upload disabled via environment variable. Saving to ${payloadSaveFile}`,
|
||||
);
|
||||
logger.info(`Payload: ${JSON.stringify(payload, null, 2)}`);
|
||||
fs.writeFileSync(payloadSaveFile, JSON.stringify(payload, null, 2));
|
||||
return "dummy-sarif-id";
|
||||
|
||||
@@ -114,7 +114,9 @@ async function run() {
|
||||
|
||||
// We don't upload results in test mode, so don't wait for processing
|
||||
if (shouldSkipSarifUpload()) {
|
||||
core.debug("SARIF upload disabled. Waiting for processing is disabled.");
|
||||
core.debug(
|
||||
"SARIF upload disabled via environment variable. Waiting for processing is disabled.",
|
||||
);
|
||||
} else if (actionsUtil.getRequiredInput("wait-for-processing") === "true") {
|
||||
if (codeScanningResult !== undefined) {
|
||||
await upload_lib.waitForProcessing(
|
||||
|
||||
Reference in New Issue
Block a user