-
Notifications
You must be signed in to change notification settings - Fork 82
Description
I run repositories where my default branch often doesn't match the default branch of the upstream repository. This is a totally reasonable thing for me to do.
When I refresh my repository with the latest master, I get this unhappy view:
https://github.com/check-spelling-sandbox/cert-manager/actions/runs/13138950431
Problems:
-
There should be a step summary that says whatever is interesting
-
If there isn't a step summary, and the action wants to trigger a ❌ , it should surface an annotation explaining why it's unhappy, which I presume is:
refs/heads/master not supported with push event. Only the default branch spell-check is supported. 2025/02/04 15:29:20 creating scorecard entrypoint: validating options: only default branch is supported -
Assuming the action is only willing to run when run from the default branch, then the default suggested workflow should include a guard so that the workflow doesn't run when the default branch doesn't match the current branch. The guard is simple: cert-manager/cert-manager@d3fb179
-
As users rarely update actions in existing workflows, the action should nudge people to add the guard by including a step summary explaining how to add the guard.
I'm willing to make PRs for these items, but can't guarantee that I'll make them promptly as this is very low on my yak list.