build: bump poetry to 2.3.4 and consolidate SDK workflows#10681
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
There was a problem hiding this comment.
Pull request overview
Updates the project’s Poetry tooling to a single, shared source of truth and migrates SDK CI workflows to use the existing setup-python-poetry composite action.
Changes:
- Bump Poetry to
2.3.4across CI, Docker, ReadTheDocs, and pre-commit. - Consolidate multiple SDK GitHub workflows onto
./.github/actions/setup-python-poetry. - Refresh lockfiles and documentation, and remove a deprecated license trove classifier.
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Removes deprecated license classifier entry. |
prowler/CHANGELOG.md |
Notes Poetry bump + workflow consolidation in SDK changelog. |
prowler/AGENTS.md |
Updates documented Poetry requirement to 2.3+. |
api/Dockerfile |
Pins Poetry install to 2.3.4 for API container builds. |
api/CHANGELOG.md |
Adds unreleased entry documenting Poetry bump + lock regeneration. |
Dockerfile |
Pins Poetry install to 2.3.4 for SDK container builds. |
AGENTS.md |
Updates project overview tech stack to specify Poetry 2.3+. |
.readthedocs.yaml |
Pins Poetry install to 2.3.4 for docs builds. |
.pre-commit-config.yaml |
Updates Poetry hook rev to 2.3.4. |
.github/workflows/sdk-tests.yml |
Migrates SDK tests workflow to composite action. |
.github/workflows/sdk-security.yml |
Migrates SDK security workflow to composite action. |
.github/workflows/sdk-pypi-release.yml |
Migrates SDK publish workflow to composite action (deps install disabled). |
.github/workflows/sdk-container-build-push.yml |
Migrates container workflow to composite action (deps install disabled). |
.github/workflows/sdk-code-quality.yml |
Migrates SDK lint workflow to composite action. |
.github/workflows/prepare-release.yml |
Migrates release-prep workflow to composite action (deps install disabled). |
.github/actions/setup-python-poetry/action.yml |
Updates default Poetry version to 2.3.4. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🔒 Container Security ScanImage: 📊 Vulnerability Summary
4 package(s) affected
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
4 package(s) affected
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10681 +/- ##
===========================================
+ Coverage 19.19% 93.61% +74.41%
===========================================
Files 845 227 -618
Lines 24090 31923 +7833
===========================================
+ Hits 4625 29884 +25259
+ Misses 19465 2039 -17426
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
The step "Update SDK resolved_reference to latest commit (prowler repo on push)" ran `grep "resolved_reference" poetry.lock` against the main prowler repo, but the root `poetry.lock` has no `resolved_reference` entries (the repo does not self-reference via git+https). As a result, grep exits 1 and fails the step on every push to master. This broke `sdk-container-build-push.yml` on every push to master after PR #10681 migrated it to this composite action. The sibling step that updates downstream repositories remains untouched.
Context
Bumps Poetry to
2.3.4across the project and consolidates SDK GitHub workflows onto the existingsetup-python-poetrycomposite action so there's one place to change the Poetry version, and gates lockfile regeneration so only workflows that need it (API) re-lock in CI.Description
./.github/actions/setup-python-poetry(removes 7 hardcodedpoetry==2.1.1pins).2.3.4in the composite action default,.pre-commit-config.yaml,Dockerfile,api/Dockerfile, and.readthedocs.yaml.poetry.lockandapi/poetry.lockwith2.3.4.License :: OSI Approved :: Apache Software Licenseclassifier (redundant with PEP 639license = "Apache-2.0").AGENTS.mdandprowler/AGENTS.mdto sayPoetry 2.3+.poetry lockin the composite action behind a new opt-inupdate-lockinput (defaultfalse). SDK workflows stop re-locking in CI;api-tests,api-code-quality,api-securityopt in viaupdate-lock:'true'to preserve the existing@masterVCS rewrite flow.Steps to review
Create local virtual environments and Docker images. In CI logs confirm SDK workflows skip the Update poetry.lock step while API workflows still run it.
Checklist
SDK/CLI
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.