Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(products): added other products support #29

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ inputs:
jira-link-type:
description: "this defines the relation of the new issue with feature issue specified and default value for this is 'Relates'"
required: false
include-all-products:
description: "a boolean to enable findings from other products"
required: false
skip-products:
description: "comma separated list of product names for those the findings should be skipped"
required: false

runs:
using: 'node20'
Expand Down
24 changes: 22 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@enterprise-cmcs/macpro-security-hub-sync": "^1.9.0"
"@enterprise-cmcs/macpro-security-hub-sync": "^1.10.0"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",
Expand Down
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as core from '@actions/core'
import {SecurityHubJiraSync} from '@enterprise-cmcs/macpro-security-hub-sync';
import {SecurityHubJiraSync} from '@enterprise-cmcs/macpro-security-hub-sync'

async function run(): Promise<void> {
try {
Expand All @@ -12,6 +12,12 @@ async function run(): Promise<void> {
process.env.ASSIGNEE = core.getInput('assign-jira-ticket-to')
process.env.JIRA_LINK_ID = core.getInput('jira-link-id')
process.env.JIRA_LINK_TYPE = core.getInput('jira-link-type')
process.env.INCLUDE_ALL_PRODUCTS = core.getInput('include-all-products')
const productList: string[] = core
.getInput('skip-products')
.split(',')
.map((product: string) => product.trim())
process.env.SKIP_PRODUCTS = productList.join(',')

let customJiraFields
const customJiraFieldsInput = core.getInput('jira-custom-fields')
Expand Down
Loading