Repository navigation
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds a new requirements-hashes.txt file containing pinned Python dependencies and their hashes for the test infrastructure. Feedback was provided to address the inclusion of absolute local paths from the author's machine within the generated file, which leaks internal directory structures and usernames. It is recommended to regenerate the file using relative paths.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new file test-infra/requirements-hashes.txt which lists pinned Python dependencies along with their SHA-256 hashes to ensure secure and reproducible builds for the test infrastructure. I have no feedback to provide as there are no issues identified in these changes.
…ows/requirements for Dependabot
|
/gemini review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4605 +/- ##
============================================
- Coverage 59.74% 59.73% -0.02%
Complexity 8383 8383
============================================
Files 1123 1123
Lines 72705 72705
Branches 8842 8842
============================================
- Hits 43441 43429 -12
- Misses 26363 26375 +12
Partials 2901 2901
🚀 New features to boost your workflow:
|
|
Closing for now to avoid introducing dedicated transitive hash lockfiles for scheduled cleanup scripts; keeping focus on surgical workflow permission and action pinning fixes. |
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
CodeQL/Scorecard/zizmor) onmainthat are not already covered by upcoming Apache Beam releases, without altering intended template or workflow semanticsIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
Resolves OpenSSF Scorecard
PinnedDependenciesIDCode Scanning alerts (#114,#115,#229,#230) in.github/workflows/cleanup-spanner-test-infra.ymlwith native Dependabot hash maintenance:python -m pip install --upgrade pipandpip install -r test-infra/requirements.txtin both cleanup jobs withpython -m pip install --require-hashes -r .github/workflows/requirements/cleanup-spanner-test-infra-requirements-hashes.txt.test-infra/requirements.txtand places the hash-locked requirements file under/.github/workflows/requirements/so GitHub Dependabot (package-ecosystem: pipin#4604) natively updates both package versions and--hash=sha256:...digests automatically in a weekly grouped PR.Verification
test-infraPython imports (google-cloud-storage,google-cloud-spanner,google-cloud-datastream) and CI checks pass.