Skip to content

task: Scorecard — strengthen branch protection on default + release branches (Branch-Protection) #272

@mirzakopic

Description

@mirzakopic

Description

OpenSSF Scorecard reports Branch-Protection: 4–6/10 on six platform-mesh repos. Branch protection on the default and release branches is not maximal — typically missing one or more of: required reviewers, dismiss-stale-reviews, require-PR-before-merge, require-status-checks, prevent force-push, prevent deletion.

Fix pattern (per repo):

  1. GitHub repo settings → Branches → add/edit ruleset for main (and any release-* branch):
    • Require pull request before merging
    • Require approvals: at least 1 (2 for security-sensitive repos)
    • Dismiss stale pull request approvals when new commits are pushed
    • Require status checks to pass before merging
    • Require branches to be up to date before merging
    • Restrict deletions
    • Block force pushes
  2. Alternatively: use a shared org-level ruleset and point all repos at it.

Affected repos

  • custom-images — Branch-Protection: 5/10
  • ocm — Branch-Protection: 6/10
  • platform-mesh.github.io — Branch-Protection: 6/10
  • provider-quickstart — Branch-Protection: 5/10
  • resource-broker — Branch-Protection: 4/10
  • upstream-images — Branch-Protection: 5/10

Notes

Objectives

  • All six repos reach Branch-Protection: 8/10 or higher.
  • Org-level ruleset documented in .github repo so new repos inherit the same protection.

Demo Required

None

Demo Steps

No response


Epic: #278

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions