-
Notifications
You must be signed in to change notification settings - Fork 7
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
Include advisory source in new security advisory commits #451
Labels
Comments
Ocramius
referenced
this issue
in Roave/SecurityAdvisories
Nov 17, 2021
…+00:00" Original commit: "FriendsOfPHP/security-advisories@2c1108e"
Locally, I've just deleted some of packages from the "old" version and do comparison of newly generated composer.json to the old one. So this way we will have a a list of packages that are not in the old composer.json version. Please check example below. Is this what we need ?
|
That seems exactly like what we're trying to achieve here, yes 👍 |
Ocramius
referenced
this issue
in Roave/SecurityAdvisories
Feb 2, 2024
…+00:00" Original commit: "FriendsOfPHP/security-advisories@e14352c"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One regular source of support questions is "why is
some/library:1.2.3
included in theroave/security-advisories
conflicts
section?"This is becoming regular and quite frustrating:
We probably do want to start committing the source of an advisory.
Specifically, we need to add a
Source
(value object with a URI in it, basically) toAdvisory
:SecurityAdvisoriesBuilder/src/Roave/SecurityAdvisories/Advisory.php
Lines 33 to 46 in 0246933
After doing that comes the tricky part: we need to identify which advisories were not considered as part of the pre-existing
composer.json
.For that, we need to:
composer.json
into an usable in-memory data structureAdvisory
instances against itAdvisory
instances that would lead to a change of theexcluded
(data structure above?)Advisory
instances to a list that is then used to determine the commit message to be generatedSecurityAdvisoriesBuilder/build-conflicts.php
Lines 247 to 275 in 14a83da
The text was updated successfully, but these errors were encountered: