Skip to content

feat(policy): reusable runner-policy gate that works on the Team plan - #3

Merged
thedancingdeveloper merged 1 commit into
mainfrom
feat/reusable-runner-policy
Aug 3, 2026
Merged

feat(policy): reusable runner-policy gate that works on the Team plan#3
thedancingdeveloper merged 1 commit into
mainfrom
feat/reusable-runner-policy

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Contributor

Replaces the inert Enterprise-only ruleset with a reusable workflow + per-repo stub.

🤖 Generated with Claude Code

The organization ruleset "required workflows" rule cannot enforce anything
here. It is a GitHub Enterprise feature and this org is on Team. The REST API
accepted the ruleset and reported it active, but no check ever appeared on a
pull request and /rulesets/rule-suites returns 403 "Upgrade to GitHub
Enterprise". That ruleset was created, observed inert, and deleted.

Replace it with a reusable workflow plus a per-repo stub. Reusable workflows
run with the caller's context, so actions/checkout fetches the calling
repository and the audit applies there. This works on Team because this
repository's Actions access is set to `organization`, which permits org-wide
calls into a private repository.

Drop enforce-runner-policy.yml: as a standalone workflow here it only audited
this repository, duplicating audit.yml.

The trade-off is honest: this needs one small file per repository and
`runner-policy` added to each protected branch's required checks. Without that
second step it reports but does not block.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@thedancingdeveloper
thedancingdeveloper merged commit 83fb6fe into main Aug 3, 2026
1 check passed
@thedancingdeveloper
thedancingdeveloper deleted the feat/reusable-runner-policy branch August 3, 2026 00:58
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.

1 participant