Skip to content

Instantly share code, notes, and snippets.

@evankanderson
evankanderson / check_pinned.star
Last active June 1, 2026 21:12 — forked from krrish175-byte/branch_protection.star
Minder rule test format experiment -- Starlark
# Minder Rule Test — Starlark Format Experiment
# Rule: branch_protection_allow_force_pushes
# Format: Starlark (using go.starlark.net embedding)
#
# The test runner would embed a Starlark interpreter and expose:
# - run_rule(rule_name, mocks, profile) → EvalResult
# - EvalResult.status → "pass" | "fail" | "error"
# - EvalResult.violations → list of violation messages
# ── Shared setup ──────────────────────────────────────────────────────────────
# OpenSSF Minder Individual Contributor License Agreement
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Stacklok. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
In consideration of the opportunity to participate in the community of contributors to OpenSSF Minder projects, You accept and agree to the following terms and conditions for Your present and future Contributions submitted to OpenSSF Minder. Except for the license granted herein to OpenSSF Minder and recipients of software di