Skip to content

Commit

Permalink
fix: Remove org check
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekMasher committed Dec 4, 2024
1 parent 7acdfbf commit 35a278c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ghasreview/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def onCodeScanningAlertClose():
return {"message": "Severity is not high enough to get security involved"}

# Check if an org account
try:
# TODO: Is this needed this org check?
alert.client.organization(alert.owner)
except Exception:
logger.debug(f"Non-organization account is using the App, lets do nothing...")
return {"message": "Non-organization account is using the App. Do nothing."}
# try:
# # TODO: Is this needed this org check?
# alert.client.organization(alert.owner)
# except Exception:
# logger.debug(f"Non-organization account is using the App, lets do nothing...")
# return {"message": "Non-organization account is using the App. Do nothing."}

# Check team
if not alert.client.checkIfTeamExists(alert.owner, config.get("GHAS_TEAM")):
Expand Down

0 comments on commit 35a278c

Please sign in to comment.