diff --git a/pyproject.toml b/pyproject.toml index 15aac71..ebc1d5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.2.35" +version = "2.2.36" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 451b3f1..e8d9874 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,3 +1,3 @@ __author__ = 'socket.dev' -__version__ = '2.2.35' +__version__ = '2.2.36' USER_AGENT = f'SocketPythonCLI/{__version__}' diff --git a/socketsecurity/core/scm/github.py b/socketsecurity/core/scm/github.py index 0870f5c..7d5905d 100644 --- a/socketsecurity/core/scm/github.py +++ b/socketsecurity/core/scm/github.py @@ -100,7 +100,7 @@ def __init__(self, client: CliClient, config: Optional[GithubConfig] = None): sys.exit(2) def check_event_type(self) -> str: - if self.config.event_name.lower() == "push": + if self.config.event_name.lower() in ["push", "workflow_dispatch"]: if not self.config.pr_number: return "main" return "diff"