aboutsummaryrefslogtreecommitdiff
path: root/applications/gitlab/gitlab_admins.py
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2025-04-05 13:43:01 -0500
committerGitHub <noreply@github.com>2025-04-05 13:43:01 -0500
commitbee22b97b652cd04fa470d7f31c3b917e44f3ab9 (patch)
treee1ec29a3388b94a8d41e3b28ca1f2357f3efaec7 /applications/gitlab/gitlab_admins.py
parent3041472781997ff66c5f9fa80a7f5ffbd284a438 (diff)
downloadaudit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.gz
audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.bz2
audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.zip
migrate from pylint to ruff (#1)
* migrate from pylint to ruff * Commit from GitHub Actions (Pylint) * rename pylint.yml to ruff.yml * only run ruff-action when python files change --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'applications/gitlab/gitlab_admins.py')
-rw-r--r--applications/gitlab/gitlab_admins.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/gitlab/gitlab_admins.py b/applications/gitlab/gitlab_admins.py
index 7fb2c78..091032c 100644
--- a/applications/gitlab/gitlab_admins.py
+++ b/applications/gitlab/gitlab_admins.py
@@ -12,12 +12,14 @@ TIMEOUT = 30
URL = f"{BASE_URL}/groups/{GROUP_ID}/members"
HEADERS = {"PRIVATE-TOKEN": PRIVATE_TOKEN}
-if __name__ == '__main__':
+if __name__ == "__main__":
# Get group members
response = requests.get(URL, headers=HEADERS, timeout=TIMEOUT)
if response.status_code == 200:
members = response.json()
for member in members:
- print(f"Username: {member['username']}, Access Level: {member['access_level']}")
+ print(
+ f"Username: {member['username']}, Access Level: {member['access_level']}"
+ )
else:
print(f"Failed to fetch group members: {response.status_code}, {response.text}")