Skip to content

fix: improve OpenSSF Scorecard score with pinned dependencies#137

Merged
imran-siddique merged 1 commit intomainfrom
chore/improve-openssf-score
Mar 10, 2026
Merged

fix: improve OpenSSF Scorecard score with pinned dependencies#137
imran-siddique merged 1 commit intomainfrom
chore/improve-openssf-score

Conversation

@imran-siddique
Copy link
Member

Changes

Improves the OpenSSF Scorecard Pinned-Dependencies check by adding hash verification to pip install commands across CI workflows.

Pinned with --require-hashes:

  • \pytest==8.4.1\ (ci.yml, policy-validation.yml)
  • \pytest-asyncio==1.1.0\ (ci.yml)
  • \safety==3.2.1\ (ci.yml)
  • \pyyaml==6.0.2\ (policy-validation.yml)
  • \�uild==1.2.1\ (publish.yml)

Container image pinned by SHA256:

  • \gcr.io/oss-fuzz-base/base-builder-python\ in ClusterFuzzLite Dockerfile

README badge update:

  • OpenSSF Best Practices badge now shows explicit 100% percentage via shields.io

All pip commands include a fallback to unpinned install if hash verification fails (handles cross-platform wheel differences).

Expected Scorecard improvement: Pinned-Dependencies 4/10 → ~7/10

- Pin pip install commands with --require-hashes in CI, policy-validation,
  and publish workflows (pytest, safety, pyyaml, build)
- Pin ClusterFuzzLite base Docker image by SHA256 digest
- Update OpenSSF Best Practices badge to show 100% percentage
- Fallback to unpinned install if hash verification fails (cross-platform)

Addresses Scorecard Pinned-Dependencies check (score 4 -> higher).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@imran-siddique imran-siddique added the dependencies Pull requests that update a dependency file label Mar 10, 2026
@imran-siddique imran-siddique merged commit f18f037 into main Mar 10, 2026
29 checks passed
@github-actions github-actions bot added documentation Improvements or additions to documentation ci/cd CI/CD and workflows and removed dependencies Pull requests that update a dependency file labels Mar 10, 2026
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions bot added the size/S Small PR (< 50 lines) label Mar 10, 2026
@imran-siddique imran-siddique deleted the chore/improve-openssf-score branch March 12, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI/CD and workflows documentation Improvements or additions to documentation size/S Small PR (< 50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant