-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dissallow already linked issue #11298
Conversation
DryRun Security SummaryThe pull request focuses on improving the management and validation of JIRA issue links within the Defect Dojo application, introducing a new function to check if a finding is already linked to a specific JIRA issue and adding a validation check to the Expand for full summarySummary: The code changes in this pull request focus on improving the management and validation of JIRA issue links within the Defect Dojo application. The changes introduce a new function to check if a finding is already linked to a specific JIRA issue and add a validation check to the While the changes do not directly introduce any obvious security vulnerabilities, it's essential to ensure that any database queries and user input are properly sanitized and validated to prevent potential security issues, such as SQL injection attacks. Additionally, the other serializers in the Files Changed:
Code AnalysisWe ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the function to return the whole finding rather than just the ID. It could be useful in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
[sc-5525]
Fixes #9930
When using the jira_finding_mappings API endpoint, trying to update a finding's Jira mapping with a Jira issue that is already assigned to another finding will now raise a validation error.