Add OpenSSF Scorecard workflow and badge - #149
Merged
Merged
Conversation
Aligns mkl_random with dpctl, dpnp, mkl_umath and mkl_fft, which all run the Scorecard action from the repository itself. Running the analysis in-repo lets Scorecard evaluate checks that the external scan cannot see. The published report for mkl_random currently contains 14 checks, while the other repositories report 18: CI-Tests, Contributors, Dependency-Update-Tool and Vulnerabilities are missing even though .github/dependabot.yml is present. The workflow is copied verbatim from mkl_fft, so all action versions stay pinned by commit hash and consistent across the projects.
xaleryb
requested review from
antonwolfy,
jharlow-intel,
ndgrigorian and
vlad-perevezentsev
as code owners
July 29, 2026 03:14
antonwolfy
approved these changes
Jul 29, 2026
antonwolfy
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Thank you @xaleryb
ndgrigorian
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the OpenSSF Scorecard workflow and the corresponding README badge, aligning
mkl_randomwith the other projects in the org.mkl_randomis currently the only one of these repositories without.github/workflows/openssf-scorecard.yml:openssf-scorecard.ymlWhy it matters beyond the badge
Running the analysis from within the repository lets Scorecard evaluate checks that an external scan cannot see. The published report for
mkl_randomcontains 14 checks, while the other four report 18 — missing areCI-Tests,Contributors,Dependency-Update-ToolandVulnerabilities, even though.github/dependabot.ymlis present and CI is extensive.Those four checks would score well here, so simply having them evaluated raises the aggregate score without any change to the codebase.
Notes
mkl_fft, so every action stays pinned by commit hash and the four projects remain consistent.permissions: read-all; the elevatedsecurity-events: write/id-token: writeare scoped to the job, matching the other repositories, soToken-PermissionsandDangerous-Workfloware unaffected.Upload to code-scanningstep publishes Scorecard's own SARIF findings to the Security tab (these are Scorecard results, not code vulnerabilities), same as in the sibling projects. Happy to drop that step if it is not wanted — it does not affect the score.Related, applied separately via repository rulesets
maintenance/1.4.xhad no branch protection at all; it now carries the same rules asmaster(this branch is the target of the 1.4.2 release).masternow requires branches to be up to date before merging. Its required status checks were configured but earning no points, because Scorecard's tier evaluation stops early and the unmet tier 2 was suppressing tier 3.Together these take
Branch-Protectionfrom 1 to an expected 8.