Skip to content

Commit 3d9e110

Browse files
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.
1 parent 270faa3 commit 3d9e110

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@38801766549e8f86ee8bf9dc99e976fc12ee2ccf # 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)