Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from zsrtp/automerg2
Browse files Browse the repository at this point in the history
Automerg2
  • Loading branch information
Pheenoh authored Apr 7, 2024
2 parents 7240d4e + 83ef752 commit 84ca854
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.github/workflows/sync-users-check.yml @zsrtp/Admins
manage-users.py @zsrtp/Admins
3 changes: 3 additions & 0 deletions .github/workflows/sync-users.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
permissions:
id-token: write
contents: read
on:
push:
branches:
Expand Down
6 changes: 3 additions & 3 deletions manage-users.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def remove_ghidra_users(current_users,yaml_users,dry_run):
print(ghidra_user, "isn't in the source control list anymore. Removing...",end='')

if not dry_run:
# remove_user(ghidra_user)
remove_user(ghidra_user)
print("Done.")
else:
print("Dry run mode. Skipping.")
Expand Down Expand Up @@ -190,7 +190,7 @@ def update_ghidra_users(current_users,yaml_users,dry_run):
if curr_yaml_name in current_users.keys() and current_users[curr_yaml_name] != curr_yaml_perm:
print("User", curr_yaml_name, "permissions don't match. Updating...", end='')
if not dry_run:
# check_and_set_permission(curr_yaml_name, curr_yaml_perm)
check_and_set_permission(curr_yaml_name, curr_yaml_perm)
print("Done.")
else:
print("Dry run mode. Skipping.")
Expand Down Expand Up @@ -227,7 +227,7 @@ def add_ghidra_users(current_users,yaml_users,dry_run):
print("User", ghidra_user["ghidraName"],
"doesn't exist. Creating...", end='')
if not dry_run:
# add_user(ghidra_user["ghidraName"])
add_user(ghidra_user["ghidraName"])
print("Done.")
else:
print("Dry run mode. Skipping.")
Expand Down

0 comments on commit 84ca854

Please sign in to comment.