Repository navigation
feat(github): add .github/rulesets to the github bundle - #1286
Merged
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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.ymlto mentionrulesetsin thegithubbundle description. - Bumped
configure-git-authaction 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 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: |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/rulesets/main-branch-protection.jsonto 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 intobundles/github/. As a result, downstream projects syncing thegithubbundle 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— addedrulesetsto the github bundle description.Notes
~DEFAULT_BRANCHand its required status checks map to the CI job names the github bundle's workflows already ship.🤖 Generated with Claude Code