11 Commits

Author SHA1 Message Date
George Weale f4b432db11 fix(ci): stop CI resolving against half-published PyPI releases
Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 963546374
2026-08-12 11:01:09 -07:00
Rohit Yanamadala 00759548aa fix: resolve zizmor security findings in GitHub Actions workflows
Merge https://github.com/google/adk-python/pull/6601

This PR resolves 58 security and workflow linting findings identified by zizmor across 13 GitHub Actions workflow files.

PiperOrigin-RevId: 962236543
2026-08-10 10:35:55 -07:00
Xuan Yang 566fca3fa9 fix: Update CI workflow to use uv and adjust codespell configuration
Co-authored-by: Xuan Yang <xygoogle@google.com>
PiperOrigin-RevId: 960912014
2026-08-07 07:12:10 -07:00
Google Team Member 4e65350eee fix: resolve GitHub Actions CI collection and flakiness issues
PiperOrigin-RevId: 960108371
2026-08-06 00:08:40 -07:00
XananasX7 4e16855e0d fix: pin third-party github actions to commit shas
Merge https://github.com/google/adk-python/pull/6229

Pin third-party GitHub Actions to specific commit SHAs in CI and release workflows to harden supply-chain security.

PiperOrigin-RevId: 949177003
2026-07-16 14:31:52 -07:00
Google Team Member 17d5f389ce ci: add dual-version A2A CI coverage (a2a-sdk 0.3.x and 1.x)
Add a CI job that runs the A2A test suite against a2a-sdk 0.3.x in addition to
the version resolved by the main test run, so the adk/a2a/_compat.py
compatibility shim stays verified against both SDK majors.

PiperOrigin-RevId: 940935952
2026-07-01 01:43:25 -07:00
George Weale c91fc752a5 fix: exclude scripts/ from pre-commit compliance checks
scripts/compliance_checks.py documents and matches the very patterns it
forbids, so the compliance-checks hook (which scanned every .py file)
flagged itself and failed on every PR running pre-commit on all files.
Skip the dev-only scripts/ directory. Also clears pre-existing pyink and
end-of-file drift surfaced by the same all-files run.

Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 940618068
2026-06-30 13:10:51 -07:00
Shangjie Chen 8c7fcd1c7b refactor(ci): Optimize workflows and secure JSON passing
1. Enable caching for `setup-uv` in `continuous-integration.yml` and
   `release-publish.yml` to speed up CI runs.
2. Secure JSON passing in `discussion_answering.yml` by using an environment
   variable instead of writing it via inline bash heredoc to prevent potential
   script injection.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 940546688
2026-06-30 11:00:49 -07:00
Shangjie Chen 8a7656b857 refactor(ci): Consolidate compliance checks into pre-commit hook
Move custom file compliance checks (logger pattern, future annotations,
cli imports, mTLS endpoints) from GHA inline bash scripts to a unified
python script (compliance_checks.py) and expose it as a local pre-commit hook.
Remove the compliance-check job from CI workflow.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 940081615
2026-06-29 15:59:28 -07:00
Shangjie Chen 8c9fff859c chore: Consolidate file content compliance checks into the unified CI pipeline
Integrate the custom linter and compliance checks from check-file-contents.yml as a parallel 'compliance-check' job in continuous-integration.yml. This job is restricted to run only on pull_request events to preserve its git-diff based incremental analysis logic.

This change deletes the now redundant check-file-contents.yml file, further consolidating our GitHub Actions infrastructure and reducing status check clutter on PR pages.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 936313070
2026-06-22 16:39:40 -07:00
Shangjie Chen a8b0fed55b chore: Consolidate GitHub Actions workflows into a single unified pipeline
Consolidate the pre-commit, mypy-new-errors, and python-unit-tests workflows into a single parallelized pipeline in continuous-integration.yml. This significantly reduces notification spam by reporting only one status card per push/pull request.

Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 936280226
2026-06-22 15:29:17 -07:00