Skip to content

DARZ Agent Gate Check v0.4.0

Choose a tag to compare

@barg-labs-agent barg-labs-agent released this 25 Nov 01:43
1bd1639

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_unreviewed when check 1, 2 or 3 fails. It is unverifiable with required_check_actions_pin_review_unknown when 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: write and 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/*.yml and *.yaml. As context, it lists the workflows that are triggered by pull_request or pull_request_target and that grant checks: write, at workflow level or job level, or through write-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.pullRequestWorkflowsWithChecksWrite and details.pullRequestWorkflowsUndecided, and details.workflowSignal is complete, incomplete or not_computed. The signal never changes check 1's status.
    • Workflow reads have their own cap of 500 files. Darz still adds no YAML dependency.

Docs

  • README: github/codeql-action/upload-sarif is 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.Z comment.

Records stay in format darz-record-0.3. The schema is unchanged.