-
-
Notifications
You must be signed in to change notification settings - Fork 650
Pin GH workflows to commits #3899
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
base: main
Are you sure you want to change the base?
Conversation
Note: https://github.com/cobbler/cobbler/actions/runs/14376477553/job/40310022828?pr=3899 seems to be broken with both v5 and the latest version. Is that expected? |
I don't think it is wise to cause this additional maintenance overhead and pin the GH actions. We struggle enough as it is due to a lack of contributions and I am not willing to do this. The issues that have been caused by non-pinned GH actions is zero. None of the recent issues affected us in any way. Furthermore we don't have the renovate bot set up for Cobbler. If you don't give me any major reason I have missed I would like to close this PR. |
So I think the reasoning behind the change is best security practices detailed by [0]. In SUSE-related repositories, I believe we were required to make this change (or at the very least, SUMA's leadership decided as such in reaction to the I created the PR since I was doing to work on |
Currently used actions:
So to summarize, we have the following Actions that are not officially maintained by GitHub:
Apart from the first one and the last two, none of the actions are able to modify code as they are linters. The Action from pypa is definitely to be trusted, as such, we have two remaining candidates that may be an issue:
Both are very vital to the release workflow and need write access to files which could potentially be an issue if they become corrupted. I will request a comment from Security on what an acceptable compromise is because the better way to do this, in my opinion, is to limit the acceptable Actions to a well-known list which is reviewed, and not put this continuous effort on the maintainers who are already overworked. Maybe I can save you some work as well. :) |
Linked Items
Related to: https://github.com/SUSE/spacewalk/issues/26740
Description
This PR follows SUSE's security team recommendation to pin GH actions/workflows to a specific commit rather than to a tag. I've complied with the recommendation in
opensuse/cobbler
, and we thought it would be worthy to prepare a PR that complies with the recommendation forcobbler/cobbler
.In the process, I've updated some workflow versions to the latest commit; should this break something, we can downgrade them to the previous versions.
Behaviour changes
None
Category
This is related to a:
Tests