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
44 changes: 44 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish dbshield-defense to PyPI

on:
release:
types: [published]
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
- "python-v*"
- "dbshield-defense-*"
workflow_dispatch:

jobs:
publish-pypi:
name: Build & Publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build sdist and wheel
run: |
cd sdks/python
python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdks/python/dist/
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
2 changes: 1 addition & 1 deletion sdks/python/dbshield/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .integrations.crewai import DBShieldDatabaseTool
from .integrations.llamaindex import DBShieldLlamaIndexTransform

__version__ = "0.2.0"
__version__ = "0.2.1"

__all__ = [
"DBShieldGuard",
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "dbshield-defense"
version = "0.2.0"
version = "0.2.1"
description = "Database Guardrail, SQL AST Firewall & Sandboxing Wire Proxy for AI Coding Agents in Python"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
Loading