Skip to content

Commit 58194bf

Browse files
committed
Do not require debug mode for debugging uploads
1 parent 82b82e5 commit 58194bf

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

lib/upload-sarif-action-post-helper.js

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

lib/upload-sarif-action-post-helper.js.map

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-sarif-action-post-helper.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ export async function run(
1414
) {
1515
const tempDir = actionsUtil.getTemporaryDirectory();
1616

17-
// Upload Actions SARIF artifacts for debugging
18-
if (
19-
core.isDebug() &&
20-
process.env["CODEQL_ACTION_DEBUG_COMBINED_SARIF"] === "true"
21-
) {
17+
// Upload Actions SARIF artifacts for debugging when environment variable is set
18+
if (process.env["CODEQL_ACTION_DEBUG_COMBINED_SARIF"] === "true") {
2219
core.info(
23-
"Debug mode is on. Uploading available combined SARIF files as Actions debugging artifact...",
20+
"Uploading available combined SARIF files as Actions debugging artifact...",
2421
);
2522

2623
const baseTempDir = path.resolve(tempDir, "combined-sarif");

0 commit comments

Comments
 (0)