Skip to content

Commit 53b268a

Browse files
committed
Prepare for merge from main
1 parent 33a31c1 commit 53b268a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

lib/analyze-action.js

Lines changed: 1 addition & 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: 1 addition & 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: 1 addition & 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: 1 addition & 1 deletion
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
@@ -750,9 +750,11 @@ async function maybeUploadSpecifiedFiles(
750750
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
751751
logger.debug(`Serializing SARIF for upload`);
752752
const sarifPayload = JSON.stringify(sarif);
753+
753754
if (dumpDir) {
754755
dumpSarifFile(sarifPayload, dumpDir, logger, uploadTarget);
755756
}
757+
756758
if (!upload) {
757759
logger.info(
758760
`Skipping upload of ${uploadTarget.name} results because upload kind is "${uploadKind}"`,
@@ -819,7 +821,7 @@ function dumpSarifFile(
819821
fs.mkdirSync(outputDir, { recursive: true });
820822
} else if (!fs.lstatSync(outputDir).isDirectory()) {
821823
throw new ConfigurationError(
822-
`The path specified by the CODEQL_ACTION_SARIF_DUMP_DIR environment variable exists and is not a directory: ${outputDir}`,
824+
`The path specified by the ${EnvVar.SARIF_DUMP_DIR} environment variable exists and is not a directory: ${outputDir}`,
823825
);
824826
}
825827
const outputFile = path.resolve(

0 commit comments

Comments
 (0)