Skip to content

Add GitHub Rulesets via .asf.yaml#705

Open
ppkarwasz wants to merge 2 commits into
masterfrom
feat/rulesets
Open

Add GitHub Rulesets via .asf.yaml#705
ppkarwasz wants to merge 2 commits into
masterfrom
feat/rulesets

Conversation

@ppkarwasz
Copy link
Copy Markdown
Member

Configure a minimal Ruleset to:

  • Prevent deletion and force-push on the default (master) branch and the release branch.
  • Prevent deletion, force-push, or update of any rel/* tag.

Together, these rules satisfy the Tier 1 protection level defined by Scorecard and should allow for SLSA Source L3 compliance, once we introduce a workflow to push provenance attestation at each commit.

Configure a minimal Ruleset to:

- Prevent deletion and force-push on the default (`master`) branch and the `release` branch.
- Prevent deletion, force-push, or update of any `rel/*` tag.

Together, these rules satisfy the Tier 1 protection level defined by [Scorecard](https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection) and should allow for [SLSA Source L3](https://slsa.dev/spec/v1.2/source-requirements#source-l3) compliance, once we introduce a workflow to push provenance attestation at each commit.
@garydgregory
Copy link
Copy Markdown
Member

garydgregory commented May 12, 2026

@ppkarwasz

The branch called release is just a branch for cutting release candidates while other work may be going on in the master branch. There should be no restriction there. This would likely mess up my RC process.

Copy link
Copy Markdown
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment.

@ppkarwasz
Copy link
Copy Markdown
Member Author

That was exactly something I meant to ask, but I forgot.

It is fixed in 37cc35b

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.

2 participants