Repository navigation
Releases
Releases · BargLabs/darz
Darz v0.6.1
- Darz is published on npm as darz, from this repository's release workflow, with npm provenance. The workflow runs on a version tag, only in BargLabs/darz, from the release environment; it refuses a tag that is not the version or a dist/ that is not the build, and re-running it skips a version npm already serves with the same tarball.
- package.json is publishable: the repository link npm checks provenance against, homepage, bugs, keywords and public access with provenance. The package holds only the built CLI, the schemas, the README and the licence, and a test holds that.
- The README adds installing from npm, running a pinned version with npx, and verifying provenance with npm audit signatures.
- Tool version bumped to 0.6.1. No change to the checks or the record format.
Darz v0.6.0
Darz v0.6.0
- The record is also written as an unsigned in-toto Statement v1, darz-record.intoto.json, whose predicate is the record unchanged (predicate type https://barglabs.ai/darz/gate-check/record/v0.3) and whose subjects are the commit read and darz-record.json. The Action gains an intoto output. Darz signs nothing; the README says how to sign the Statement. The record format, darz-record-0.3, is unchanged.
- The Action removes an earlier run's outputs, the Statement included, before each run, and a test now holds that.
- Darz's own lesson uses lesson format 0.2 (owner and kind), and its self-check runs v0.5.0.
- Tool version bumped to 0.6.0.
Darz v0.5.0
Darz v0.5.0
- Lesson format 0.2: lessons can declare an owner and a kind, and check 7 reports them (ownership lines name only lessons in force, with CODEOWNERS-compatible owner matching).
- GitHub Action renamed to "DARZ Gate Check" for the GitHub Marketplace listing.
- Tool version bumped to 0.5.0.
DARZ Agent Gate Check v0.4.0
Changed
- Check 5: a required check pinned to GitHub Actions holds only while checks 1-3 hold.
- A pull request from a branch in the repository can add a workflow that posts a required check as GitHub Actions (app 15368). A pin to GitHub Actions therefore gates nothing on its own. The defence is review of the workflow change: check 1 (gate files owned, code-owner review required), together with checks 2 and 3.
- For a check pinned only to GitHub Actions, check 5 now fails with
required_check_actions_pin_unreviewedwhen check 1, 2 or 3 fails. It is unverifiable withrequired_check_actions_pin_review_unknownwhen none of them fails and one of them is unverifiable. In v0.3.0 this check passed, so upgrading can turn a passing run red. - A check that another source pins to a different app is no longer listed in
details.pinnedToGitHubActions, because GitHub enforces both pins. - The context line names the path that is not checked: an existing workflow that holds
checks: writeand runs code the pull request controls.docs/checks.md("Pinned to GitHub Actions") says what was tested and what was not.
New
- Check 1 lists pull-request workflows that hold
checks: write.- Check 1 reads
.github/workflows/*.ymland*.yaml. As context, it lists the workflows that are triggered bypull_requestorpull_request_targetand that grantchecks: write, at workflow level or job level, or throughwrite-all. - A workflow that sets no permissions depends on the repository default. That default can be read only with admin, through
GET /repos/{owner}/{repo}/actions/permissions/workflow. Without admin, such a workflow is reported as undecided. - YAML shapes the reader does not handle (aliases, merge keys, tags, block scalars, multi-line flow values) are reported as undecided, never as "no grant".
- The lists are in
details.pullRequestWorkflowsWithChecksWriteanddetails.pullRequestWorkflowsUndecided, anddetails.workflowSignaliscomplete,incompleteornot_computed. The signal never changes check 1's status. - Workflow reads have their own cap of 500 files. Darz still adds no YAML dependency.
- Check 1 reads
Docs
- README:
github/codeql-action/upload-sarifis pinned to v4.39.3 with its version comment. A docs test requires every action in the README that is pinned to a full SHA to carry a# vX.Y.Zcomment.
Records stay in format darz-record-0.3. The schema is unchanged.
DARZ Agent Gate Check v0.3.0
Breaking
- Records are format darz-record-0.3 (schema/record-0.3.schema.json), which adds check 7 and
ref. Records from v0.1.0 and v0.2.0 stay formats 0.1 and 0.2; their schemas are kept unchanged.
New
- Lessons and check 7,
lessons_hold. A team that sees an agent make the same mistake twice can write it down at.github/darz/lessons/<id>.json: a statement, evidence, and aforbidorrequirepattern check (schema/lesson-0.1.schema.json).- Check 7 requires each lesson's latest change to have been approved, on the pull request's final commit, by a person who is neither the pull request's author nor an agent, and each lesson in force to hold at the commit read.
- Lessons are always read from the default branch, so a pull request cannot delete the lesson that judges it. Lesson files are gate files, so check 1 requires them to have a code owner.
- With no lesson in force, the row is context, never pass.
--ref <sha>sets the commit check 7 runs lessons over. Default: the default branch's head.- Check 7 gives one SARIF result per failing or unverifiable lesson, located at the file and line a violated lesson found, or at the lesson file.
Changed
github-actions[bot]is a platform identity, not an agent. It is no longer detected from merge authors, collaborators or CODEOWNERS. A ruleset that lets GitHub Actions bypass it still fails check 4, and declaring it still makes it an agent.- Check 5 passes a required check pinned to GitHub Actions (app 15368) and lists such checks in
details.pinnedToGitHubActions, with a context line: any workflow withchecks: writecan post that app's check runs. - Check 6 says how many of its merges were left out.
- CODEOWNERS lines GitHub reports as errors are read the way GitHub handles them: an Unknown owner line applies with the owners not flagged; an Invalid owner anywhere on the line, or an Invalid pattern, skips the line; a
!negation line has no effect. Other error shapes staycodeowners_error_ambiguous. - README: a section on using Darz alongside OpenSSF Scorecard, zizmor and OSV-Scanner, with a least-privilege workflow sketch.
DARZ Agent Gate Check v0.2.0
Breaking
- Node 22 or later is required (engines >=22). The Action runs on node24.
- Records are format darz-record-0.2 (schema/record-0.2.schema.json). Records from v0.1.0 stay format 0.1; their schema is kept unchanged.
New
- Opt-in GraphQL reader (--graphql-ruleset-roles, Action input graphql-ruleset-roles) for the role names of ruleset bypass actors in check 4. It is the one exception to GET-only reads: fixed query documents, no mutations, the configured host only.
- Checks 1 and 3 also judge probe paths: a new workflow, a new action, and CODEOWNERS locations GitHub reads first (new_gate_paths_unowned).
- Check 6 judges candidate gate files as they were at each merge, and reads merges until none can be missing (merges_incomplete at the page cap).
- OrganizationAdmin bypasses are judged from organisation membership; agent app installation permissions are checked where the token can read them.
- Agent apps: one slug declared with two ids is agent_app_ids_conflict, two slugs sharing one id is agent_app_slugs_share_id, and a declared id that GitHub's lookup does not confirm is noted in context.
- Redirects for renamed or transferred repositories are followed within the API URL.
Changed
- Candidate files are read up to 500 distinct blobs; node_modules paths are skipped.
- Fixes for false passes found in review, among them check 5 with unresolved agent apps and the classic-protection 404 proof.
- A test keeps shipped files free of tracker numbers, local paths and personal email addresses.
DARZ Agent Gate Check v0.1.0
Full Changelog: https://github.com/BargLabs/darz/commits/v0.1.0