Repository navigation
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.