Skip to content

Commit

Permalink
Do not require debug mode for debugging uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
koesie10 committed Mar 26, 2024
1 parent 82b82e5 commit 58194bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
7 changes: 3 additions & 4 deletions lib/upload-sarif-action-post-helper.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/upload-sarif-action-post-helper.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions src/upload-sarif-action-post-helper.ts
Expand Up @@ -14,13 +14,10 @@ export async function run(
) {
const tempDir = actionsUtil.getTemporaryDirectory();

// Upload Actions SARIF artifacts for debugging
if (
core.isDebug() &&
process.env["CODEQL_ACTION_DEBUG_COMBINED_SARIF"] === "true"
) {
// Upload Actions SARIF artifacts for debugging when environment variable is set
if (process.env["CODEQL_ACTION_DEBUG_COMBINED_SARIF"] === "true") {
core.info(
"Debug mode is on. Uploading available combined SARIF files as Actions debugging artifact...",
"Uploading available combined SARIF files as Actions debugging artifact...",
);

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

0 comments on commit 58194bf

Please sign in to comment.