diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-07 22:52:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 22:52:59 -0500 |
commit | 8b78620c2c39c996007212616a586a8644ae7e33 (patch) | |
tree | 309e2dd196f9ce99893bf5f945dfcd8a8c0c3615 /applications/gitlab/README.org | |
parent | bee22b97b652cd04fa470d7f31c3b917e44f3ab9 (diff) | |
download | audit-tools-8b78620c2c39c996007212616a586a8644ae7e33.tar.gz audit-tools-8b78620c2c39c996007212616a586a8644ae7e33.tar.bz2 audit-tools-8b78620c2c39c996007212616a586a8644ae7e33.zip |
Gitlab enhancements (#2)
* add various in-progress scripts for gitlab
* Commit from GitHub Actions (Ruff)
* add gitlab results for free-tier tools
* Commit from GitHub Actions (Ruff)
* add gitlab results for ultimate-tier tools
* Commit from GitHub Actions (Ruff)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'applications/gitlab/README.org')
-rw-r--r-- | applications/gitlab/README.org | 103 |
1 files changed, 101 insertions, 2 deletions
diff --git a/applications/gitlab/README.org b/applications/gitlab/README.org index 81d610d..37ce59b 100644 --- a/applications/gitlab/README.org +++ b/applications/gitlab/README.org @@ -1,11 +1,110 @@ #+title: GitLab Scripts -* =gitlab_admins.py= +* =approvals.py= + +\*This script requires an active Premium or Ultimate subscription.*\ + +#+begin_src sh +python ./approvals.py +#+end_src + +#+begin_src text +Rule: All Members + Approvals Required: 1 + Rule type: any_approver +Rule: Default + Approvals Required: 1 + Rule type: regular + Protected Branch: master + Eligible Approver: Christian Cleberg +#+end_src + +* =branch_protections.py= + +#+begin_src sh +python ./branch_protections.py +#+end_src + +#+begin_src json +[ + { + "id": 148448212, + "name": "main", + "push_access_levels": [ + { + "id": 185900194, + "access_level": 40, + "access_level_description": "Maintainers", + "deploy_key_id": null, + "user_id": null, + "group_id": null + } + ], + "merge_access_levels": [ + { + "id": 156461000, + "access_level": 40, + "access_level_description": "Maintainers", + "user_id": null, + "group_id": null + } + ], + "allow_force_push": false, + "unprotect_access_levels": [], + "code_owner_approval_required": false, + "inherited": false + } +] +#+end_src + +* =passwords.py= + +\*This script does not apply to GitLab.com. This is for self-hosted instances only.*\ + +#+begin_src sh +python ./passwords.py +#+end_src + +#+begin_src text +# TODO: Need access to a self-hosted version of GitLab to test this out. +#+end_src + +* =provisioning.py= + +\*This script requires an active Premium or Ultimate subscription.*\ #+begin_src sh -python ./gitlab_admins.py +python ./provisioning.py #+end_src #+begin_src text +Group: 105300140 + 2025-04-08T03:33:17.055Z : Action: member_created, Member: 128029250, Author: 24608590 +#+end_src + +* =users.py= + +#+begin_src sh +python ./users.py +#+end_src + +#+begin_src text +Access Level Roles: + 0 : No access + 5 : Minimal access + 10 : Guest + 15 : Planner + 20 : Reporter + 30 : Developer + 40 : Maintainer + 50 : Owner + 60 : Admin + + +Group 97083755 Members: +Username: ccleberg, Access Level: 50 + +Project 68701468 Members: Username: ccleberg, Access Level: 50 +Username: project_68701468_bot_2c7ee010a479c0e48cdb4c7c5cfae886, Access Level: 40 #+end_src |