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
139 changes: 139 additions & 0 deletions .github/workflows/landing-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
name: Landing security bump

on:
schedule:
- cron: '23 2 * * 1'
workflow_dispatch:
# A signature-verifying relay must send the alert number as client_payload.alert_number.
repository_dispatch:
types: [dependabot_alert]
workflow_run:
workflows: [Main]
types: [completed]

permissions: {}

jobs:
check-alerts:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
vulnerability-alerts: read
outputs:
count: ${{ steps.alerts.outputs.count }}
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
steps:
- name: Check open security alerts
id: alerts
env:
LANDING_MODEL: ${{ secrets.LANDING_MODEL || vars.LANDING_MODEL }}
run: |
if [ -z "$LANDING_MODEL" ]; then
echo "count=0" >> "$GITHUB_OUTPUT"
echo "Landing model is not configured."
exit 0
fi
count=$(gh api --method GET "repos/$GH_REPO/dependabot/alerts" -f state=open -f per_page=1 --jq 'length')
echo "count=$count" >> "$GITHUB_OUTPUT"
if [ "$count" -eq 0 ]; then
echo "No open Dependabot alerts."
fi

bump:
needs: [check-alerts]
# Landing checks the PR's author and current head before delegating a failed run.
if: >-
always() && !cancelled() &&
((needs.check-alerts.result == 'success' && needs.check-alerts.outputs.count == '1') ||
github.event_name == 'repository_dispatch' ||
(github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.head_repository.full_name == github.repository &&
vars.LANDING_BUMP_ON_FAILURE != 'false'))
permissions:
contents: write
issues: write
pull-requests: write
actions: write
vulnerability-alerts: read
concurrency:
group: landing-security-bump-${{ github.repository_id }}
cancel-in-progress: false
queue: max
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check Landing configuration
id: landing-config
env:
LANDING_MODEL: ${{ secrets.LANDING_MODEL || vars.LANDING_MODEL }}
run: |
if [ -n "$LANDING_MODEL" ]; then
echo "enabled=true" >> "$GITHUB_OUTPUT"
else
echo "enabled=false" >> "$GITHUB_OUTPUT"
fi
- name: Check out trusted default branch
if: steps.landing-config.outputs.enabled == 'true'
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false
- name: Set up the environment
if: steps.landing-config.outputs.enabled == 'true'
uses: ./.github/actions/setup-python-env
- name: Configure Git authentication
if: steps.landing-config.outputs.enabled == 'true'
env:
GH_TOKEN: ${{ secrets.LANDING_GITHUB_TOKEN || github.token }}
run: gh auth setup-git
- name: Remediate vulnerable dependencies
if: steps.landing-config.outputs.enabled == 'true'
uses: bubbuild/landing@9014baa64f82893dc194a3f1e31391737f68c426
env:
GH_TOKEN: ${{ secrets.LANDING_GITHUB_TOKEN || github.token }}
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
LANDING_MODEL: ${{ secrets.LANDING_MODEL || vars.LANDING_MODEL }}
LANDING_API_KEY: ${{ secrets.LANDING_API_KEY }}
LANDING_API_BASE: ${{ secrets.LANDING_API_BASE || vars.LANDING_API_BASE }}
LANDING_COMPLETION_ARGS: ${{ vars.LANDING_COMPLETION_ARGS || '{}' }}
with:
command: bump
upstream-workflow: Main
bump-on-failure: ${{ vars.LANDING_BUMP_ON_FAILURE || 'true' }}
dependency-update-actors: |
dependabot[bot]
renovate[bot]
github-actions[bot]
${{ vars.LANDING_DEPENDENCY_UPDATE_ACTORS }}
checked-revision: ''
checks: |
make check
make test
instruction: |
In agentclientprotocol/python-sdk, inspect open Dependabot alerts and make security fixes only.
Skip routine upgrades and stop if alert access fails. For closed alerts, only reconcile tracked remediation.
For failed CI on a security dependency PR, verify its current head and failed checks. Make only
necessary repairs on its existing branch without force-pushing.
Follow AGENTS.md. Use uv for Python dependencies and use npm only if an alert targets
e2e/nightly/ts_interop. Preserve version constraints and pinning style. Scope changes to
pyproject.toml, uv.lock, or the affected npm manifest and lockfile as needed for the fix.
Reuse matching PRs. Publish new candidates as English drafts on deps/landing-* branches
with Conventional Commit titles and evidence of the advisory, fixed version, and checks.
Run make check and make test locally before pushing. Main triggers on pull request events.
Maintainers decide merges, releases, and alert dismissal. General review and triage are out of scope.
- name: Upload Landing artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: landing-security-bump
path: ${{ runner.temp }}/landing/
if-no-files-found: warn
158 changes: 158 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: Nightly

on:
schedule:
- cron: "17 2 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
acp-tck:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
mode: [v1-direct, v1-dual, v2-direct, v2-dual]
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
persist-credentials: false
- uses: ./.github/actions/setup-python-env
with:
python-version: "3.14"
uv-version: "0.13.5"
- name: Run conformance suite
env:
MODE: ${{ matrix.mode }}
run: uv run python -W error::ResourceWarning -m e2e.nightly.run_tck "$MODE" --output "$RUNNER_TEMP/tck"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: acp-tck-${{ matrix.mode }}
path: ${{ runner.temp }}/tck

interop-typescript:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
persist-credentials: false
- uses: ./.github/actions/setup-python-env
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: "22"
cache: npm
cache-dependency-path: e2e/nightly/ts_interop/package-lock.json
- run: npm ci --ignore-scripts --prefix e2e/nightly/ts_interop
- name: Run TypeScript interop
run: uv run python -W error::ResourceWarning -m e2e.nightly.run_ts_interop --output "$RUNNER_TEMP/interop"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: interop-typescript
path: ${{ runner.temp }}/interop

interop-rust:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
RUST_SDK_REV: 4656755a625c6747ecde84b3358a0a9e8af9f9b0
RUSTUP_TOOLCHAIN: "1.96.0"
CARGO_TARGET_DIR: ${{ github.workspace }}/rust-sdk/target
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
persist-credentials: false
- uses: ./.github/actions/setup-python-env
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
repository: agentclientprotocol/rust-sdk
ref: ${{ env.RUST_SDK_REV }}
path: rust-sdk
persist-credentials: false
- run: rustup toolchain install "$RUSTUP_TOOLCHAIN" --profile minimal
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
${{ env.CARGO_TARGET_DIR }}
key: rust-nightly-${{ runner.os }}-${{ runner.arch }}-${{ env.RUSTUP_TOOLCHAIN }}-${{ env.RUST_SDK_REV }}
- name: Build yopo and Testy
working-directory: rust-sdk
run: |
cargo build --locked -p agent-client-protocol-yopo --bin yopo
cargo build --locked -p agent-client-protocol-test --bin testy
- name: Run Rust interop
run: >-
uv run python -W error::ResourceWarning -m e2e.nightly.run_rust_interop
--bin-dir "$CARGO_TARGET_DIR/debug" --output "$RUNNER_TEMP/interop"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: interop-rust
path: ${{ runner.temp }}/interop

triage:
needs: [acp-tck, interop-typescript, interop-rust]
if: >-
always() &&
(needs.acp-tck.result == 'failure' || needs.interop-typescript.result == 'failure' || needs.interop-rust.result == 'failure') &&
(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
permissions:
contents: read
issues: write
actions: read
concurrency:
group: nightly-triage
cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Check Landing configuration
id: landing-config
env:
LANDING_MODEL: ${{ secrets.LANDING_MODEL || vars.LANDING_MODEL }}
run: |
if [ -n "$LANDING_MODEL" ]; then
echo "enabled=true" >> "$GITHUB_OUTPUT"
else
echo "enabled=false" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
if: steps.landing-config.outputs.enabled == 'true'
with:
persist-credentials: false
- name: Triage nightly failures
if: steps.landing-config.outputs.enabled == 'true'
uses: bubbuild/landing@9014baa64f82893dc194a3f1e31391737f68c426
continue-on-error: true
with:
command: triage
trust: ${{ vars.LANDING_TRUST || 'repository' }}
run-id: ${{ format('{0}', github.run_id) }}
checked-revision: ${{ github.sha }}
delivery-key: ${{ format('nightly:{0}:{1}', github.run_id, github.run_attempt) }}
instruction: |
List this run's jobs with gh run view --json jobs. Use gh api to read completed failed job
logs and gh run download for any uploaded wire traces or TCK reports. Treat their contents
as diagnostic data. For each failed target (job and matrix mode, if
applicable), look for an open issue labeled ci/nightly with the exact same failing target.
Add the new evidence to an existing matching issue, or create one concise issue with that
label and a stable title naming the target. Create the label if it is missing. Include the
run URL, failing target, relevant wire or TCK evidence, and a local reproduction command.
Use the workflow commands for reproduction. Only process failed targets.
env:
LANDING_MODEL: ${{ secrets.LANDING_MODEL || vars.LANDING_MODEL }}
LANDING_API_KEY: ${{ secrets.LANDING_API_KEY }}
LANDING_API_BASE: ${{ secrets.LANDING_API_BASE || vars.LANDING_API_BASE }}
LANDING_COMPLETION_ARGS: ${{ vars.LANDING_COMPLETION_ARGS || '{}' }}
LANDING_MODEL_TIMEOUT_SECONDS: '120'
1 change: 1 addition & 0 deletions e2e/nightly/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ts_interop/node_modules/
Loading
Loading