Skip to content

Commit 160c6a6

Browse files
chore: pin pipelock action to SHA + pin release build tools (#6)
* chore: pin pipelock action to SHA + pin release build tools Resolves two OpenSSF Scorecard Pinned-Dependencies findings: - ci.yml: pipelock action pinned to 38801766... (same SHA the main pipelock repo uses for v2). - release.yml: pip / build / twine pinned to specific versions (26.0.1 / 1.4.3 / 6.2.0, current PyPI latest-stable). This is the hot path that produces the published wheel, so a tighter pin matters here even though ci.yml pip commands stay loose for maintenance reasons. Other Scorecard findings left as-is (dev-only ci pip commands, Fuzzing, Code-Review, Maintained, CII-Best-Practices, Branch-Protection) — either noise for a solo small lib or would disrupt the self-merge workflow. * chore: update pipelock action SHA pin to current v2 commit CodeRabbit caught that the original SHA (38801766...) was copied from the main pipelock repo's ci.yaml, which itself predates a newer commit on the v2 tag. v2 now points to 51d5289495b6986e... Updated to match so the '# v2' comment is accurate. No behavior change beyond picking up any fixes that landed on the action between the two SHAs.
1 parent 270faa3 commit 160c6a6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
persist-credentials: false
2626

2727
- name: Pipelock Scan
28-
uses: luckyPipewrench/pipelock@v2
28+
uses: luckyPipewrench/pipelock@51d5289495b6986e1346975b82c419e80ceadcd0 # v2
2929
with:
3030
scan-diff: 'true'
3131
fail-on-findings: 'true'

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ jobs:
5252
PY
5353
5454
- name: Install build tools
55+
# Pin to specific versions so a compromised upstream cannot
56+
# substitute a malicious build backend or upload client during
57+
# the release. Bump these explicitly when upstream releases.
5558
run: |
56-
python -m pip install --upgrade pip
57-
pip install build twine
59+
python -m pip install --upgrade 'pip==26.0.1'
60+
pip install 'build==1.4.3' 'twine==6.2.0'
5861
5962
- name: Build sdist and wheel
6063
run: python -m build

0 commit comments

Comments
 (0)