Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ We'd love to hear your feedback. Please [create an issue](https://github.com/Git

## Requirements

Python >= 3.9 or Docker
Python >= 3.10 or Docker

## License

Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "seclab-taskflows"
dynamic = ["version"]
description = 'Example taskflows to use with the the GitHub Security Lab Taskflow Agent Framework (https://github.com/GitHubSecurityLab/seclab-taskflow-agent)'
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
Expand All @@ -16,8 +16,6 @@ authors = [
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
6 changes: 3 additions & 3 deletions src/seclab_taskflows/mcp_servers/alert_results_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AlertResults(Base):
language: Mapped[str]
location: Mapped[str]
result: Mapped[str] = mapped_column(Text)
created: Mapped[Optional[str]]
created: Mapped[str | None]
valid: Mapped[bool] = mapped_column(nullable=False, default=True)
completed: Mapped[bool] = mapped_column(nullable=False, default=False)

Expand All @@ -44,8 +44,8 @@ class AlertFlowGraph(Base):
alert_canonical_id = Column(Integer, ForeignKey("alert_results.canonical_id", ondelete="CASCADE"))
flow_data: Mapped[str] = mapped_column(Text)
repo: Mapped[str]
prev: Mapped[Optional[str]]
next: Mapped[Optional[str]]
prev: Mapped[str | None]
next: Mapped[str | None]
started: Mapped[bool] = mapped_column(nullable=False, default=False)

def __repr__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Source(Base):
source_location: Mapped[str]
line: Mapped[int]
source_type: Mapped[str]
notes: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
notes: Mapped[str | None] = mapped_column(Text, nullable=True)

def __repr__(self):
return (
Expand Down
12 changes: 6 additions & 6 deletions src/seclab_taskflows/mcp_servers/ghsa_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class GHSA(Base):
ghsa_id: Mapped[str]
repo: Mapped[str]
severity: Mapped[str]
cve_id: Mapped[Optional[str]] = mapped_column(nullable=True)
description: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
summary: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
published_at: Mapped[Optional[str]] = mapped_column(nullable=True)
state: Mapped[Optional[str]] = mapped_column(nullable=True)
cve_id: Mapped[str | None] = mapped_column(nullable=True)
description: Mapped[str | None] = mapped_column(Text, nullable=True)
summary: Mapped[str | None] = mapped_column(Text, nullable=True)
published_at: Mapped[str | None] = mapped_column(nullable=True)
state: Mapped[str | None] = mapped_column(nullable=True)

def __repr__(self):
return (
Expand All @@ -38,7 +38,7 @@ class GHSASummary(Base):
high_severity_count: Mapped[int]
medium_severity_count: Mapped[int]
low_severity_count: Mapped[int]
summary_notes: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
summary_notes: Mapped[str | None] = mapped_column(Text, nullable=True)

def __repr__(self):
return (
Expand Down
Loading