Skip to content

Commit

Permalink
Add artifact name as argument but enforce positional default
Browse files Browse the repository at this point in the history
Signed-off-by: AlexDHoffer <[email protected]>
  • Loading branch information
AlexDCraig committed Oct 6, 2021
1 parent 8a8c8b4 commit 33fec53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scans/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const _ = require('lodash');
const actionHelper = require('./action-helper');

let actionCommon = {
processReport: (async (token, workSpace, plugins, currentRunnerID, issueTitle, repoName, allowIssueWriting = true) => {
processReport: (async (token, workSpace, plugins, currentRunnerID, issueTitle, repoName, allowIssueWriting = true, artifactName = 'zap_scan') => {
let jsonReportName = 'report_json.json';
let mdReportName = 'report_md.md';
let htmlReportName = 'report_html.html';
Expand Down Expand Up @@ -182,7 +182,7 @@ let actionCommon = {
}
}

actionHelper.uploadArtifacts(workSpace, mdReportName, jsonReportName, htmlReportName);
actionHelper.uploadArtifacts(workSpace, mdReportName, jsonReportName, htmlReportName, artifactName);

})
};
Expand Down

0 comments on commit 33fec53

Please sign in to comment.