Skip to content

Commit cb7faf5

Browse files
committed
Refactor: move combined SARIF debug artifact logic to debug-artifact
1 parent d4bfd40 commit cb7faf5

12 files changed

+77
-120
lines changed

lib/analyze-action-post.js

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

lib/analyze-action-post.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.

lib/debug-artifacts.js

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

lib/debug-artifacts.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.

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

Lines changed: 0 additions & 54 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/upload-sarif-action-post.js

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

lib/upload-sarif-action-post.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/analyze-action-post.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ import * as core from "@actions/core";
77

88
import * as debugArtifacts from "./debug-artifacts";
99
import { EnvVar } from "./environment";
10-
import * as uploadSarifActionPostHelper from "./upload-sarif-action-post-helper";
1110
import { wrapError } from "./util";
1211

1312
async function runWrapper() {
1413
try {
1514
// Upload SARIF artifacts if we determine that this is a first-party analysis run.
1615
// For third-party runs, this artifact will be uploaded in the `upload-sarif-post` step.
1716
if (process.env[EnvVar.INIT_ACTION_HAS_RUN] === "true") {
18-
await uploadSarifActionPostHelper.uploadArtifacts(
19-
debugArtifacts.uploadDebugArtifacts,
20-
);
17+
await debugArtifacts.uploadCombinedSarifArtifacts();
2118
}
2219
} catch (error) {
2320
core.setFailed(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy