-
-
Notifications
You must be signed in to change notification settings - Fork 90
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 major version at release #22
Comments
This sounds nice but is a security hazard (explained here why #27 (comment)). I'm thinking about how to solve this best but don't have a timeline for completing such setup. |
I see your point and thanks for sharing the post. To minimize the risk that a 3rd party action injects malicious code into your release, you could just fork It might still be worth mentioning the security risks and encourage users to use the commit sha, since as the post stated patch version tags are as hazardous and major versions. |
A A lack of Of course people should use a SHA or fork but they don't... (The pro tip on the README recommends SHA or tags over |
@hugovk fair enough! I guess I should find time to think through the options and finally solve this request once and for all... |
@webknjaz Have you thought through this? I think it'd be good to have a v1 tag, following the model that |
@pradyunsg you are right. I think I want it to be introduced along with the detailed explanation of the security considerations. Not sure if I'll be up for it right now — I need to recover from the today's drama. But feel free to remind me in a day or two... |
@webknjaz If you want I can make a PR with a workflow to generate/automate the major version tags and you can add a detailed explanation of the security considerations. Sharded works means less work for all. |
@s-weigand Please go ahead. I can't promise that @webknjaz would use it as is, but I'm certain that it'd be helpful to have it, even if it only serves as a starting platform! ^>^ |
Thanks, I'm honestly not sure what workflow I want but if you present me with options, I'll appreciate that. I recall that I looked at some automation in the past and didn't like something about it, can't remember what exactly, though. |
Oh, I remember: haya14busa/action-update-semver that was submitted to another action I have doesn't support PEP440 versions, like |
Good to know, I will keep that in mind 😄 |
Yep. I think JS folks who write these actions don't really know about anything other than semver. I think it should be fairly easy to come up with a workflow that is triggered on tag |
Since this is a docker action and we save all the js bundeling stuff, the main points are parsing the version (e.g. using |
But the pipeline for this specific action does not run it. We're talking about a separate pipeline that would just operate the GitHub repo, not the Action inside of it, right? |
What I was talking about was just a python script, which decides whether to push minor/major tags, and does it if it should. |
Please use packaging.version instead -- https://packaging.pypa.io/en/latest/version/. |
Yep! That's what I meant when I said install @s-weigand since it's supposed to be used within GHA only, I'd just embed that into YAML with |
Sadly YOLO style doesn't work since |
@s-weigand that is not entirely correct. |
To make it easier for users to adapt to breaking changes in the action, having major version tags to rely on, instead of
master
, is a good thing for users and developers.I recently discovered this awesome action which does exactly this, fully automated on relese if you set you workflow up like this.
Just wanted to share that info and action, to save you the research.
P.S.: Thanks for this action, it works like a charm 😄
The text was updated successfully, but these errors were encountered: