Skip to content

Check OpenSSF Scorecard results #21127

Closed

Description

@samdark

Run OpenSSF Scorecard on yiisoft/yii2, check which reported findings are real for this repository, and list the follow-ups worth doing.

Public result: https://scorecard.dev/viewer/?uri=github.com/yiisoft/yii2

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. samdark commented on Oct 28, 2026

    @samdark
    MemberAuthor

    Scorecard v5.6.0 results for master at bee0737.

    The public score (4.5) is too low. .gitattributes has /.github export-ignore, and Scorecard by default reads the repository from the GitHub archive, so it does not see the workflows or .github/SECURITY.md (ossf/scorecard#2489). With --file-mode git the score is 7.2. The export-ignore line is right for Composer and should stay.

    Check Score Verdict
    Branch-Protection 3 Real. master blocks force push and deletion and limits push to Core Developers, but does not require PRs, reviews or status checks, and admins are exempt. The master ruleset exists but is disabled.
    Signed-Releases 0 Real, low. The app template tarballs attached to releases have no signature or provenance. Composer installs from tags are not affected.
    SAST 1 Mostly a detection gap. PHPStan runs on every push and PR, but Scorecard does not count it; CodeQL covers only JS and workflows (it has no PHP support). There is no security-focused (taint) analysis of the PHP code.
    Fuzzing 0 Real, low value for this project.
    CII-Best-Practices 0 Real, optional: no OpenSSF Best Practices badge.
    Pinned-Dependencies 8 Real, low. All actions are pinned by SHA. Not pinned: the yiisoftware/yii2-php images in tests/Dockerfile.caching and tests/Dockerfile.mssql, the build-arg image in Dockerfile, and npm install without a lockfile in ci-node.yml. CI only.
    Security-Policy 9 Real, minor: SECURITY.md has no expected response time or disclosure process.
    CI-Tests 8 False positive: every recent merged PR has CI runs.
    Code-Review 9 Real, minor: 28 of 29 recent changes approved; follows from reviews not being required.
    Packaging n/a Published through Packagist from tags.

    Everything else scores 10: Binary-Artifacts, Contributors, Dangerous-Workflow, Dependency-Update-Tool, License, Maintained, Token-Permissions, Vulnerabilities.

    Follow-ups:

    1. Protect master: require a PR with one approval and the main CI checks, or enable the existing ruleset.
    2. Add an expected response time and the disclosure process (GitHub advisories, CVE) to SECURITY.md.
    3. To fix the public score, run ossf/scorecard-action with file_mode: git and publish_results: true.
    4. Optional: pin the test Docker images by digest, add an npm lockfile, try Psalm taint analysis, add provenance to the release tarballs, apply for the Best Practices badge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions