Migrate cgit to Gitlab
Procedure for adding an official project to GitLab
Details
- Project name: cgit
- Type: MIGRATION
- Current location: https://git.archlinux.org/cgit.git/
- Maintainers: eworm, lukas fleischer
New repo checklist
If you want to add a new official project, here are some guidelines to follow:
-
Evaluate whether the project can sit in the official GitLab Arch Linux group or whether it needs its own group. It only needs its own group if the primary development group is somehow detached from Arch Linux and only losely related (for instance: pacman) -
After project creation (use the GitLab import function if you migrate a repo), add the responsible people to the project in the Members page (https://gitlab.archlinux.org/archlinux/my-example/-/project_members) and give them the Developer
role. The idea is to let these people mostly manage their own project while not giving them enough permissions to be able to misconfigure the project. -
If mirroring to github.com is desired, work through the GitHub.com mirroring checklist below and then return to this one.(not relevant) -
If the project needs a secure runner to build trusted artifacts, coordinate with the rest of the DevOps team and if found to be reasonable, assign a secure runner to a protected branch of the project.(not relevant) -
If a secure runner is used, create an MR to make sure the project's(not relevant).gitlab-ci.yml
specifiestags: secure
. -
Make sure that the Push Rules in https://gitlab.archlinux.org/archlinux/arch-boxes/-/settings/repository reflect these values: -
Committer restriction
:on
-
Reject unsigned commits
:on
-
Do not allow users to remove tags with git push
:on
-
Check whether author is a gitlab user
:on
-
Prevent committing secrets to git
:on
- All of these should be activated by default as per group rules but it's good to check.
-
-
The Protected Branches in https://gitlab.archlinux.org/archlinux/my-example/-/settings/repository should specify Allowed to merge
andAllowed to push
asDevelopers + Maintainers.
-
Disable unneeded project features under Visibility, project features, permissions (https://gitlab.archlinux.org/archlinux/my-example/edit)
Always:-
Users can request access
:off
Often, but not always: - Repository -> Container registry
- Repository -> Git Large File Storage (LFS)
- Repository -> Packages
- Analytics
- Requirements
- Security & Compliance
- Wiki
- Operations
-
Edited by Kristian Klausen