Skip to content

Fix Scorecard publishing to scorecard.dev - #36

Closed
stphnwlsh wants to merge 2 commits into
mainfrom
fix/scorecard-publish
Closed

stphnwlsh wants to merge 2 commits into
mainfrom
fix/scorecard-publish

Conversation

@stphnwlsh

@stphnwlsh stphnwlsh commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Gets Scorecard publishing to scorecard.dev again. Since the last change, each run signed its results but the publish was rejected with workflow verification failed: scorecard job must only have steps with 'uses'. Scorecard only accepts results from a job made entirely of uses steps, and the jq step that fixes the SARIF locations is a run step.

  • Scorecard Analysis now holds only uses steps: checkout, scorecard-action and upload-artifact for results.sarif. It keeps id-token: write for publishing and no longer needs security-events: write.
  • New Scorecard Upload job runs after it: it downloads the results, fixes the "no file associated with this alert" locations with the same jq filter, and uploads scorecard.sarif to code scanning. It has contents: read and security-events: write.
  • Triggers, schedule and the README badge are unchanged.

Scorecard doesn't run on pull requests, so the first run on main after merging is the test. The Scorecard Analysis log should end without the "Unable to POST scorecard results to webapp" warning.

Related issues

None

Type of change

  • Bug fix
  • New feature
  • Breaking change (the generated solution or template parameters change in a way existing users will notice)
  • Refactoring or clean-up
  • Documentation
  • Build, pipeline or dependency update

Shared layers

  • This only touches the Presentation layer of this template.
  • This touches the Application or Infrastructure layers, tests, pipeline or repository setup, so it needs to be carried across all five templates.

Checklist

  • dotnet build and dotnet test pass locally with no warnings.
  • I added or updated tests, and coverage stays at or above 95% overall and 90% on changed lines.
  • I updated the README or docs where behaviour changed.
  • I checked the template still installs and creates a working solution (see CONTRIBUTING.md).

@stphnwlsh stphnwlsh self-assigned this Oct 29, 2026
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.81%. Comparing base (a3a115c) to head (3a71407).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #36   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          72       72           
  Lines         555      555           
  Branches       32       32           
=======================================
  Hits          554      554           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stphnwlsh stphnwlsh closed this Oct 30, 2026
@stphnwlsh
stphnwlsh deleted the fix/scorecard-publish branch November 7, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant