-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add security update support for Github Actions #6071
Add security update support for Github Actions #6071
Conversation
da1c9b6
to
2eb35c6
Compare
This one is ready for a review now! :) |
2eb35c6
to
cceaa21
Compare
ab46138
to
557f5f4
Compare
Alright, so I addressed review comments, let me update the status of this PR. The PR currently implements the standard "lowest fixed version" logic of other ecosystems with the following particularities:
Finally, I went a bit overboard an added a few cross-ecosystem refactoring that are not directly related to this PR. May I split them to a separate PR? |
Yeah, that one's a head-scratcher. If a The main problem, I think, is in communicating why Dependabot is suggesting a particular change. I don't expect most users to understand the idiosyncrasies of Actions versioning, but I'm not sure what we can really do about that. In the interest of shipping to learn, I'd be happy going with this behavior and seeing what kind of reception it gets from users. |
Yeah, let's evaluate those separately. |
I totally agree with your points!
Yes, that was my biggest hesitation here, that users may not understand why we're proposing this update changing precision. I guess we could add a note about this to the PR, but I'm not fully sure how to go about implementing that.
Sure, let me split them! |
It works like this: * It tries to update to the lowest fixed version that keeps the existing version precision. * If a fixed version keeping precision does not exist, it changes precision in favor of fixing the vulnerability. * If pinned to a major version tag which belongs to the vulnerable series but points to a non vulnerable tag, it does not propose an update.
557f5f4
to
7196bb0
Compare
It currently sits on top of #6052, because they were updating the same part of the code and I didn't want conflicts.
Still needs tests but just open a WIP PR for now.