Skip to content

Commit

Permalink
prevent add invalid repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Dec 17, 2024
1 parent df1525b commit c7ad3d2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ def schedule_github_deletions(self, organization: str, last_check: Optional[date
self.schedule_github_deletion("GITHUB", user, repo_name)

def schedule_github_deletion(self, provider: str, user: str, repo_name: str):
if user not in self.allowed_users:
return

if RepositoryWhiteList.objects.filter(
provider=provider, repository_user=user, repository_name=repo_name
).exists():
Expand Down

0 comments on commit c7ad3d2

Please sign in to comment.