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
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
GO_CONFIG_FILE: ".golangci.yaml"
PROTOBUF_CONFIG_FILE: ".protolintrc.yml"
TRIVY_CONFIG_FILE: ".trivy.yml"
FILTER_REGEX_EXCLUDE: "(.*/charts/.*)"
FILTER_REGEX_EXCLUDE: "(.*/charts/.*)|(sdk/python/outshift/.*)|(sdk/python/google/.*)|(sdk/python/openapiv3/.*)"
VALIDATE_ALL_CODEBASE: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_YAML_PRETTIER: false
Expand All @@ -49,6 +49,7 @@ jobs:
VALIDATE_PYTHON_BLACK: false
VALIDATE_PYTHON_PYINK: false
VALIDATE_PYTHON_ISORT: false
VALIDATE_PYTHON_FLAKE8: false
MULTI_STATUS: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_CSS: false
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/release-python-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2025 Cisco Systems, Inc. and its affiliates
# SPDX-License-Identifier: Apache-2.0

---
name: Release Python SDK

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

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

- name: Build package
run: |
cd python && python -m build

- name: Show files
run: ls -l ./python/dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./python/dist
password: ${{ secrets.PYPI_API_TOKEN }}

Copilot AI Sep 23, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using password-based authentication with PYPI_API_TOKEN is deprecated. Since Trusted Publishing is already configured (id-token: write permission), remove the password parameter to use the more secure OIDC-based authentication method.

Suggested change
password: ${{ secrets.PYPI_API_TOKEN }}

Copilot uses AI. Check for mistakes.
2 changes: 1 addition & 1 deletion samples/agent/a2a/currency_exchange/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM python:3.12-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

WORKDIR /code
COPY ./agent/a2a/currency_exchange/* .
COPY ./samples/agent/a2a/currency_exchange/* .
RUN pip install --no-cache-dir .

CMD ["python", "main.py"]
4 changes: 2 additions & 2 deletions samples/agent/oasf/financial_assistant/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ FROM python:3.12-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

WORKDIR /code
COPY ./agent/oasf/financial_assistant/* .
COPY ./samples/agent/oasf/financial_assistant/* .
RUN pip install --no-cache-dir .

# Copy UI files to ui directory
COPY ./agent/oasf/financial_assistant/ui/ ./ui/
COPY ./samples/agent/oasf/financial_assistant/ui/ ./ui/

# Expose only one port for uvicorn
EXPOSE 9093
Expand Down
2 changes: 1 addition & 1 deletion samples/mcp/currency_exchange/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM python:3.12-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

WORKDIR /code
COPY ./mcp/currency_exchange/* .
COPY ./samples/mcp/currency_exchange/* .
RUN pip install --no-cache-dir .

CMD ["python", "main.py"]
Loading