Skip to content

Commit

Permalink
Merge pull request #15 from donhui/enum-0314
Browse files Browse the repository at this point in the history
fix issues of enum
  • Loading branch information
donhui authored Mar 14, 2023
2 parents 2a51f96 + 59b7250 commit 24e3996
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ response = issues.create_issue_event(
issue_id='test-2023-0221',
summary='test-2023-0221',
description='test-2023-0221',
package_type=PackageType.MAVEN,
package_type=PackageType.MAVEN.value,
component_id='com.test:test',
vulnerable_versions=["[1.0.10.2,)"],
)
Expand All @@ -190,7 +190,7 @@ response = issues.update_issue_event(
issue_id='test-2023-0221',
summary='test-2023-0221',
description='test-2023-0221 update',
package_type=PackageType.MAVEN,
package_type=PackageType.MAVEN.value,
component_id='com.test:test',
vulnerable_versions=["[1.0.10.2,)"],
)
Expand Down
8 changes: 4 additions & 4 deletions xray/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def create_issue_event(self,
component_id: str,
vulnerable_versions: list,
provider="Custom",
issue_type=XrayIssueType.SECURITY,
severity=XrayIssueSeverity.LOW,
issue_type=XrayIssueType.SECURITY.value,
severity=XrayIssueSeverity.LOW.value,
cve_list=None
):
"""
Expand Down Expand Up @@ -84,8 +84,8 @@ def update_issue_event(self,
component_id: str,
vulnerable_versions: list,
provider="Custom",
issue_type=XrayIssueType.SECURITY,
severity=XrayIssueSeverity.LOW,
issue_type=XrayIssueType.SECURITY.value,
severity=XrayIssueSeverity.LOW.value,
cve_list=None,
source_list=None,
):
Expand Down

0 comments on commit 24e3996

Please sign in to comment.