Skip to content

Commit

Permalink
Showing 3 changed files with 10 additions and 29 deletions.
10 changes: 1 addition & 9 deletions lib/upload-lib.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-lib.js.map

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

27 changes: 8 additions & 19 deletions src/upload-lib.ts
@@ -109,27 +109,16 @@ export async function uploadFromActions(
apiDetails: api.GitHubApiDetails,
logger: Logger
): Promise<UploadStatusReport> {
const repositoryNwo = parseRepositoryNwo(
actionsUtil.getRequiredEnvParam("GITHUB_REPOSITORY")
);
const commitOid = await actionsUtil.getCommitOid();
const ref = await actionsUtil.getRef();
const analysisKey = await actionsUtil.getAnalysisKey();
const analysisName = actionsUtil.getRequiredEnvParam("GITHUB_WORKFLOW");
const workflowRunID = actionsUtil.getWorkflowRunID();
const checkoutPath = actionsUtil.getRequiredInput("checkout_path");
const environment = actionsUtil.getRequiredInput("matrix");

return await uploadFiles(
getSarifFilePaths(sarifPath),
repositoryNwo,
commitOid,
ref,
analysisKey,
analysisName,
workflowRunID,
checkoutPath,
environment,
parseRepositoryNwo(actionsUtil.getRequiredEnvParam("GITHUB_REPOSITORY")),
await actionsUtil.getCommitOid(),
await actionsUtil.getRef(),
await actionsUtil.getAnalysisKey(),
actionsUtil.getRequiredEnvParam("GITHUB_WORKFLOW"),
actionsUtil.getWorkflowRunID(),
actionsUtil.getRequiredInput("checkout_path"),
actionsUtil.getRequiredInput("matrix"),
gitHubVersion,
apiDetails,
"actions",

0 comments on commit 19fe854

Please sign in to comment.