Disabling force-push on the default branch for projects hosted on GitHub #7
Replies: 4 comments 16 replies
-
In my opinion, that will also prevent the practice ("good" or "bad" one 🙂 ), to work on new major versions and continue to use the "main" for the current/previous version until the new major is stable enough. That usually requires then to "reset" the "main", when the new major gets stable enough to become the default (main). With that, I would guess, it will be required to:
Are there plans to do so? Or what will be the intended "workflow" for new major versions and version specific bugfix branches? br |
Beta Was this translation helpful? Give feedback.
-
Hi @mbarbero, could you please clarify the term "main branches"? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I'm actually surprised that force push is allowed at all. I recall that, at least at some point, force push was allowed only on branches named with a committer id, e.g., IMHO, trying to decide which branches are "main" branches, or attempting to capture that in some metadata is going to be a game of whack-a-mole. Wouldn't it be better to set a policy by which force push is allowed only on branches that follow certain naming conventions? I believe that there are existing conventions of allowing force push on branches named, for example, |
Beta Was this translation helpful? Give feedback.
-
Dear Eclipse Foundation Projects committers,
As part of our ongoing commitment to help you with strengthening the security and integrity of your projects, we've recently implemented measures like enforcing two-factor authentication (2FA) and enabled self-service options. Today, we're introducing another important change: we will disable force-push on default branches across all repositories of projects hosted on GitHub.
Force-pushing allows the commit history of a repository to be rewritten, which can pose a security risk. It can obscure the tracking of changes, making it difficult to maintain a clear audit trail and potentially hiding unauthorized modifications. By disabling force-push on default branches, we aim to:
This aligns our GitHub repositories with the standards already in place on our GitLab instance at https://gitlab.eclipse.org/, where force-push is disabled by default.
This change will take effect on 20 November 2024. Please adjust your workflows accordingly before this date.
You may need to modify your development practices to accommodate this change. Instead of force-pushing to the default branch, consider working within feature branches and merging changes through pull requests. This approach not only preserves the integrity of the commit history but also fosters better collaboration and code quality through peer reviews.
We understand that this may require some adjustments, and we're here to support you during this transition. If you have any questions or concerns, or if a special situation arises where force-pushing to the default branch is necessary, please feel free to reach out or comment below.
Thank you for your understanding and cooperation as we continue to improve our development processes.
Kind regards,
(Also posted on Oct 31 on eclipse.org-committers mailing list)
Beta Was this translation helpful? Give feedback.
All reactions