Skip to content

fix: trigger scorecard on default branch events, not releases#624

Merged
lakhansamani merged 1 commit into
mainfrom
fix/scorecard-default-branch-trigger
Jun 3, 2026
Merged

fix: trigger scorecard on default branch events, not releases#624
lakhansamani merged 1 commit into
mainfrom
fix/scorecard-default-branch-trigger

Conversation

@lakhansamani
Copy link
Copy Markdown
Contributor

Problem

The Scorecard supply-chain workflow runs on: release: [created]. The OSSF Scorecard action only supports the repository's default branch — a release event checks out the tag ref (e.g. 2.3.0-rc.1), so the action aborts:

refs/tags/2.3.0-rc.1 not supported with release event.
Only the default branch main is supported.
creating scorecard entrypoint: validating options: only default branch is supported

This means the scorecard job fails on every RC/release. See run: https://github.com/authorizerdev/authorizer/actions/runs/26877785127/job/79269599505

Fix

Replace the release trigger with the OSSF-recommended events:

  • push to main — re-score on every merge to the default branch
  • schedule — weekly cron (Mon 07:20 UTC) so the published score stays fresh
  • branch_protection_rule — re-score when branch protection changes (a scored check)

No change to permissions, publishing, or the action version.

The OSSF Scorecard action only supports the repository default branch.
Triggering on release (created) runs against the tag ref (e.g.
2.3.0-rc.1) and fails with 'only default branch is supported',
breaking every RC/release.

Switch to the OSSF-recommended triggers: push to main, a weekly
schedule, and branch_protection_rule changes.
@lakhansamani lakhansamani merged commit fcd34c0 into main Jun 3, 2026
1 check passed
@lakhansamani lakhansamani deleted the fix/scorecard-default-branch-trigger branch June 3, 2026 11:19
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