PREQ-4947 pipfile lock update#133
Conversation
45ac3fb to
5dd5b85
Compare
Add --deploy to all pipenv install calls Authenticate pip with Repox
5dd5b85 to
8d9f940
Compare
|
SummaryThis PR enforces stricter Python dependency management by adding the What reviewers should knowFiles to review in order:
Key context: The
|
There was a problem hiding this comment.
Pull request overview
This PR updates Python dependency lockfiles and hardens CI/install steps by enforcing pipenv install --deploy (ensuring lockfiles and Python version match), while also adding a pip configuration step via SonarSource/ci-github-actions/config-pip@v1 to support Repox usage.
Changes:
- Update
Pipfile.lockfiles (root andreleasability-status/) to current resolved dependencies/hashes. - Add
--deploytopipenv installinvocations across composite actions, workflow, and Makefiles. - Introduce
SonarSource/ci-github-actions/config-pipstep before Python dependency installation.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
action.yml |
Adds pip configuration step and enforces pipenv install --deploy in the main composite action. |
Pipfile.lock |
Refreshes resolved dependency versions/hashes for the main action. |
Makefile |
Enforces --deploy for local make test and make releasability-check. |
.github/workflows/build.yml |
Adds pip configuration and enforces --deploy for CI dependency installs in both modules. |
releasability-status/action.yml |
Adds pip configuration and enforces pipenv install --deploy in the status composite action. |
releasability-status/Pipfile.lock |
Refreshes resolved dev dependencies/hashes for the status action. |
releasability-status/Makefile |
Enforces --deploy for local make test and make releasability-status. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: "3.14" | ||
| - uses: SonarSource/ci-github-actions/config-pip@v1 |
There was a problem hiding this comment.
SonarSource/ci-github-actions/config-pip@v1 uses a mutable tag. The rest of this workflow pins actions to commit SHAs; please pin config-pip to a commit SHA as well to prevent supply-chain drift.
| - uses: SonarSource/ci-github-actions/config-pip@v1 | |
| - uses: SonarSource/ci-github-actions/config-pip@0123456789abcdef0123456789abcdef01234567 # v1 |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: "3.14" | ||
| - uses: SonarSource/ci-github-actions/config-pip@v1 |
There was a problem hiding this comment.
SonarSource/ci-github-actions/config-pip is referenced by the mutable tag @v1. In this repo most external actions are pinned to a full commit SHA (e.g., actions/setup-python@…, aws-actions/configure-aws-credentials@…) to reduce supply-chain risk; please pin this action to a specific commit SHA (and keep the # v1 comment if desired).
| - uses: SonarSource/ci-github-actions/config-pip@v1 | |
| - uses: SonarSource/ci-github-actions/config-pip@0f5c4926e7e10c8ca3fee763018cabbaea807b87 # v1 |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: "3.14" | ||
| - uses: SonarSource/ci-github-actions/config-pip@v1 |
There was a problem hiding this comment.
SonarSource/ci-github-actions/config-pip is referenced via the mutable @v1 tag. To align with the repo’s action pinning approach (commit SHA + version comment), pin this to a specific commit SHA to avoid unexpected changes in CI behavior.
| - uses: SonarSource/ci-github-actions/config-pip@v1 | |
| - uses: SonarSource/ci-github-actions/config-pip@8c919a28b9a7cbdeb18f0d33bd44a14bcbb15741 # v1.0.0 |



The
pipenv install --deploysecurity check parameter will abort if the Pipfile.lock is out-of-date, or Python version is wrong.--deployoption everywherepipenv lock; pipenv updateThis adds a requirement for the public-reader preset: https://github.com/SonarSource/re-terraform-aws-vault/pull/8857
Test with https://github.com/SonarSource/gh-action_releasability/actions/runs/23738357260