scorecard-action: Scheduled run fails

I set up this action and the scheduled run failed with,

refs/heads/master not supported with 'schedule' event.
Only the default branch 'refs/heads/null' is supported

Since I followed your guide and did not modify this action, I think there is a missing step somewhere?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 22 (10 by maintainers)

Most upvoted comments

cc @GuillaumeRoss who reported the same on the scorecard repo https://github.com/ossf/scorecard/issues/1610

Thank you. I expected the env variable to be set even though there’s no event payload… after all github.repository has nothing to do with the event payload, does it?

The ${{ github.repository }} is not directly accessible from an action, so I need to create an undocumented action argument to populate it. I’d like to avoid doing this, so I’ll wait till I hear back from the GH support ticket I created. AFAICT, the GITHUB_REPOSITORY is not part of the payload event so it should be populated as per https://docs.github.com/en/actions/learn-github-actions/environment-variables

Thank you all for your help!

no worries, thank you!

I think I’ve found the issue: your run logs hasRepository: null. I don’t understand why the env variable GITHUB_REPOSITORY (https://docs.github.com/en/actions/learn-github-actions/environment-variables) is not set for schedule trigger, that’s strange. Let me see what I can do.