Skip to content

fix(dependabot-digest): count ruleset-required standards-check - #296

Merged
smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-digest-ruleset-protection-99a8dc3b
Nov 20, 2026
Merged

smartwatermelon-agent[bot] merged 1 commit into
mainfrom
claude/fix-digest-ruleset-protection-99a8dc3b

Conversation

@smartwatermelon-agent

Copy link
Copy Markdown
Contributor

The digest's protection probe read only classic branch protection. Six nightowlstudiollc repos (amelia-boone, jordan-paddock-pitch, tnjcleaning, kebab-tax-netlify, night-owl-studio, stupid-github-app) require standards-check / run-standards-check through a repository ruleset, so the digest listed them as "standards-check not required".

When classic protection does not require the check, probe_protection now also reads repos/{nwo}/rules/branches/{branch}. That endpoint needs only Metadata: read, which the digest Apps already have, and it returns active rules only (evaluate and disabled rulesets are left out, per the GitHub docs).

  • A required_status_checks rule that lists the check: required.
  • Ruleset rules without it: protected, not unprotected. aomo stays flagged.
  • A failed or malformed rules read: unreadable.
  • The 403 "Upgrade to GitHub Pro or make this repository public" on a private repo (captured live on smartwatermelon/claude-config-backup) keeps the classic verdict, so exempt private repos stay exempt. The same 403 on a public repo is unreadable.

Fixtures for amelia-boone and aomo are live captures from 2026-11-20. The twistedmelonman private-repo 403 is modeled on the smartwatermelon capture, because the gh wrapper has no App route for twistedmelonman.

test-run-digest.sh also gets the unset -f gh line that test-standards.sh already has (dev-env#215). Without it, a Claude Code session's exported gh function bypassed the stub and 10 assertions failed on main.

The protection probe read only classic branch protection. Six
nightowlstudiollc repos require standards-check through a ruleset, so the
digest flagged them as "standards-check not required".

When classic protection does not require the check, the probe now also
reads rules/branches/{branch} (metadata: read). A required_status_checks
rule that lists the check makes the repo required. Ruleset rules without
it make an unprotected branch protected-no-standards. A failed or
malformed rules read is unreadable. The 403 for rulesets on a private
free-plan repo keeps the classic verdict, so exempt repos stay exempt.

test-run-digest.sh now unsets an exported gh function, as
test-standards.sh does; without it the stub was bypassed in a Claude
Code session and 10 assertions failed.
@smartwatermelon-agent
smartwatermelon-agent Bot merged commit a8a7f56 into main Nov 20, 2026
6 checks passed
@smartwatermelon-agent
smartwatermelon-agent Bot deleted the claude/fix-digest-ruleset-protection-99a8dc3b branch November 20, 2026 19:29
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.

0 participants