Skip to content

Default behavior for forks of this workflow is frustrating #1502

@jsoref

Description

@jsoref

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

Image

Problems:

  1. There should be a step summary that says whatever is interesting

  2. 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
    
  3. 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

  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions