Skip to content

Commit

Permalink
allowIssueWriting: Also move to options object
Browse files Browse the repository at this point in the history
Fixes the same issue of avoiding confusion with parameters are
added to the signature.

Signed-off-by: Tony Narlock <[email protected]>
  • Loading branch information
tony committed Dec 3, 2021
1 parent b578e13 commit 78d624c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/scans/src/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
DEFAULT_OPTIONS: {
artifactName: 'zap_scan'
allowIssueWriting: true,
artifactName: 'zap_scan',
}
}
2 changes: 1 addition & 1 deletion packages/scans/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const actionHelper = require('./action-helper');
const { DEFAULT_OPTIONS } = require('./constants');

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

0 comments on commit 78d624c

Please sign in to comment.