Skip to content

[Bug]: OpenSSF Scorecard workflow fails due to run step violating workflow restrictions #300

@WilliamBerryiii

Description

@WilliamBerryiii

Component

Scripts

Bug Description

The OpenSSF Scorecard badge is not working. The badge URL returns a 404 and the Scorecard viewer shows no results. Investigation revealed that all recent scorecard workflow runs on main are failing with the error:

scorecard job must only have steps with `uses`, see https://github.com/ossf/scorecard-action#workflow-restrictions

The Add job summary step in .github/workflows/scorecard.yml uses a run: block, which violates ossf/scorecard-action workflow restrictions.

Expected Behavior

The OpenSSF Scorecard workflow should complete successfully and publish results to the Scorecard API. The badge at https://api.scorecard.dev/projects/github.com/microsoft/hve-core/badge should return a valid image.

Steps to Reproduce

  1. Navigate to the repository's Actions tab
  2. Filter by "OpenSSF Scorecard" workflow
  3. Observe all recent runs on main branch have failed
  4. Check the failed run logs for the error message

Additional Context

Metadata

Metadata

Labels

bugSomething isn't workingneeds-triageRequires triage and prioritization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions