-
Notifications
You must be signed in to change notification settings - Fork 80
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
"Branch already exists" during scan-repository fix #649
base: dev
Are you sure you want to change the base?
"Branch already exists" during scan-repository fix #649
Conversation
…me-already-exist-bug-fix
scanrepository/scanrepository.go
Outdated
/* | ||
handler := cfp.handlers[vulnDetails.Technology] | ||
if handler == nil { | ||
handler = packagehandlers.GetCompatiblePackageHandler(vulnDetails, cfp.scanDetails) | ||
cfp.handlers[vulnDetails.Technology] = handler | ||
} else if _, unsupported := handler.(*packagehandlers.UnsupportedPackageHandler); unsupported { | ||
return | ||
} | ||
*/ |
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.
?
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.
I suggest when parsing the params, if more than one project is defined and no identify exists, to set the names with a counter (or default value like 'project-1', 'project-2'... This will fix the issues for users that did not changed their config with special names
This PR addresses a bug in the scan-repository flow. When multiple descriptor files contain at least one similar fix (package name + version), Frogbot encounters an issue when attempting to fix the second descriptor due to duplication in the 'fix' branch names. To resolve this issue, we have introduced a new field in the frogbot-config.yml file under the 'projects' section called 'projectName'. By adding this field to an entry in the 'projects' array, it enables differentiation between two similar fixes, resulting in unique branch names and titles (the unique identifier is appended to the title).
SCENARIOS:
ACTION PLAN:
IMPORTANT:
As of its current architecture, Frogbot does NOT offer support for multiple descriptor files.
This fix serves as a temporary "workaround" as achieving full support for this feature would necessitate significant architectural adjustments.
CAUTION:
If you opt to utilize this new feature and you already have existing PRs from Frogbot, please note that new PRs will be generated without removing the old ones!