Skip to content

feat(github): add .github/rulesets to the github bundle - #1286

Merged
tschm merged 6 commits into
mainfrom
feat/github-bundle-rulesets
Jun 24, 2026
Merged

tschm merged 6 commits into
mainfrom
feat/github-bundle-rulesets

Conversation

@tschm

@tschm tschm commented Jun 24, 2026

Copy link
Copy Markdown
Member

What

Adds .github/rulesets/main-branch-protection.json to the github bundle so downstream projects inherit branch protection.

Why

The ruleset was added to rhiza's own .github/ in #1172 (OpenSSF Scorecard branch-protection work) but was never propagated into bundles/github/. As a result, downstream projects syncing the github bundle did not receive it. The #1172 follow-up explicitly flagged propagating this to bundle templates for downstream parity.

Changes

  • bundles/github/.github/rulesets/main-branch-protection.json — copied in (byte-identical to the root version).
  • .rhiza/template-bundles.yml — added rulesets to the github bundle description.

Notes

  • The ruleset is downstream-generic: it targets ~DEFAULT_BRANCH and its required status checks map to the CI job names the github bundle's workflows already ship.
  • The bundle is directory-driven, so no manifest update was needed; the content-validity suite auto-picks-up and JSON-validates the file.
  • 361 bundle + downstream-sync tests pass locally.

🤖 Generated with Claude Code

dependabot Bot and others added 3 commits June 23, 2026 05:11
Bumps the github-actions group with 2 updates: [github/gh-aw-actions](https://github.com/github/gh-aw-actions) and [jebel-quant/rhiza](https://github.com/jebel-quant/rhiza).


Updates `github/gh-aw-actions` from 0.79.8 to 0.80.9
- [Release notes](https://github.com/github/gh-aw-actions/releases)
- [Changelog](https://github.com/github/gh-aw-actions/blob/main/CHANGELOG.md)
- [Commits](github/gh-aw-actions@c0338fe...8c7d04e)

Updates `jebel-quant/rhiza` from 0.19.1 to 0.19.4
- [Release notes](https://github.com/jebel-quant/rhiza/releases)
- [Changelog](https://github.com/Jebel-Quant/rhiza/blob/main/CHANGELOG.md)
- [Commits](v0.19.1...v0.19.4)

---
updated-dependencies:
- dependency-name: github/gh-aw-actions
  dependency-version: 0.80.9
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: jebel-quant/rhiza
  dependency-version: 0.19.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Dependabot bumped github/gh-aw-actions/setup to v0.80.9, but it must
match the gh-aw compiler version (v0.79.8). Recompile lock files back
to v0.79.8 and add a dependabot ignore rule so it is no longer bumped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The main-branch-protection ruleset was added to rhiza's own .github in
#1172 but never propagated into the github bundle, so downstream projects
did not inherit branch protection. Copy it into bundles/github/ and note
rulesets in the bundle description.

The ruleset is downstream-generic: it targets ~DEFAULT_BRANCH and its
required status checks map to CI job names the github bundle already ships.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 24, 2026 04:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds the repository ruleset-as-code branch protection definition to the github bundle so downstream projects can inherit it via bundle sync, and updates bundle metadata accordingly. The PR also includes workflow maintenance updates and a Dependabot config reformat.

Changes:

  • Added bundles/github/.github/rulesets/main-branch-protection.json (matches root ruleset) to propagate branch protection to downstream repos.
  • Updated .rhiza/template-bundles.yml to mention rulesets in the github bundle description.
  • Bumped configure-git-auth action references in multiple workflows; reformatted .github/dependabot.yml (currently breaks an existing test expectation that the file retains the Rhiza header and matches the bundle copy byte-for-byte).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
bundles/github/.github/rulesets/main-branch-protection.json Adds branch-protection ruleset JSON to the github bundle for downstream inheritance.
.rhiza/template-bundles.yml Updates github bundle description to include rulesets.
.github/workflows/rhiza_weekly.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_release.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_mutation.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_marimo.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_codeql.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_ci.yml Bumps configure-git-auth action version in multiple jobs.
.github/workflows/rhiza_book.yml Bumps configure-git-auth action version.
.github/workflows/rhiza_benchmark.yml Bumps configure-git-auth action version.
.github/workflows/copilot-setup-steps.yml Bumps configure-git-auth action version.
.github/dependabot.yml Reformats Dependabot config; currently removes the required Rhiza header and diverges from the bundle copy (breaks a lockstep test).

Comment thread .github/dependabot.yml Outdated
Comment on lines +1 to +5
updates:
# Python dependencies using uv
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
day: "tuesday"
time: "09:00"
timezone: "Asia/Dubai"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
open-pull-requests-limit: 10
labels:
- "dependencies"
- "python"
groups:
python-dependencies:
patterns:
- "*"
update-types:
- "patch"
- "minor"
commit-message:
prefix: "chore(deps)"
prefix-development: "chore(deps-dev)"
include: "scope"

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "tuesday"
time: "09:00"
timezone: "Asia/Dubai"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
open-pull-requests-limit: 10
labels:
- "dependencies"
- "github-actions"
groups:
github-actions:
patterns:
- "*"
update-types:
- "patch"
- "minor"

commit-message:
prefix: "chore(deps)"
include: "scope"

# Docker
#- package-ecosystem: "docker"
# directory: "/docker"
# schedule:
# interval: "weekly"
# day: "tuesday"
# time: "09:00"
# timezone: "Asia/Dubai"
# open-pull-requests-limit: 10
# labels:
# - "dependencies"
# - "docker"
# commit-message:
# prefix: "chore(deps)"
# include: "scope"
- commit-message:
include: scope
prefix: chore(deps)
prefix-development: chore(deps-dev)
Comment on lines 59 to 63
version: "0.11.16"

- name: Configure git auth for private packages
uses: jebel-quant/rhiza/.github/actions/configure-git-auth@v0.19.1
uses: jebel-quant/rhiza/.github/actions/configure-git-auth@v0.19.4
with:
tschm and others added 3 commits June 24, 2026 10:20
The Dockerfile and build.sh hardcoded "rhiza" as the source directory
(COPY . $SRC/rhiza / cd "$SRC/rhiza"), which breaks when this bundle is
synced into downstream repos. Switch to the name-free pattern that
ClusterFuzzLite documents: COPY . $SRC/ + WORKDIR $SRC, and cd "$SRC" in
build.sh. $SRC is provided by the OSS-Fuzz base image (=/src), so no
project-specific path remains.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`make gh-aw-compile` had rewritten .github/dependabot.yml with the gh-aw
compiler's own content, stripping the rhiza header and reordering keys.
Restore it from the authoritative github-bundle copy so the two stay in
lockstep, as test_gh_aw_compile_did_not_clobber_dependabot_config requires.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tschm
tschm merged commit b880f98 into main Jun 24, 2026
60 checks passed
@tschm
tschm deleted the feat/github-bundle-rulesets branch June 24, 2026 07:02
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