From 1ae48c456927b4301d9c17c5bdb22d0370a6f0e0 Mon Sep 17 00:00:00 2001 From: Douglas Coburn Date: Mon, 24 Nov 2025 16:33:01 -0800 Subject: [PATCH] add support for workflow_dispatch to Github --- pyproject.toml | 2 +- socketsecurity/__init__.py | 2 +- socketsecurity/core/scm/github.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"