Repository navigation
53 lines (53 loc) · 2.79 KB
/
Copy pathreview.yml
File metadata and controls
53 lines (53 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# An agent's review of every pull request here, through our deployment's
# review entrypoint, cgwalters-forge/actions' cgwalters-review.yml, which
# composes agentic-job v0.6.16's review jobs with our tailnet join and
# inference defaults, and admits PRs as agentic-job's review.yml did
# (#625). It reads its bounds (workflow/review.toml,
# workflow/review-command.toml) and its task (workflow/review.md) from
# this repository's base branch, its agent, model, runner and inference
# settings from repository variables (the actions README, "Review"), and
# the runner's configuration from agentic-job's hosted.toml unless the
# variable AGENT_CONFIG names a file here. Pinned by SHA, not followed at
# main as our other callers are (#544), so that this gate changes only by
# a reviewed change here; the job_workflow_ref the tailnet and inference
# broker admit then names that commit, so move the pin and that admission
# together.
# With the variable AGENT_REAL_REVIEWS it also submits the verdict as a
# review by github-actions[bot], an approval whatever files change, this
# one and the review's own bounds and task included (agentic-job#540; the operator's
# decision is in docs/operator-notes.md, "2026-10-13, the harness evolving
# itself").
# No workflow-ingress check runs here, and ci runs from the pull request's
# head, so for every change to .github/ and workflow/ the model's verdict
# is the only gate.
name: review
# Paced dispatch is not wired: this pin has no dispatch input contract or
# record-only mode. Keep event reviews until the coordinated cutover in
# README.md, "Paced-review cutover"; adding dispatch alone would double-start.
on:
# Runs this file from the base branch. No job here checks out the pull
# request: the agent fetches the head as data inside its sandbox, with
# no credential, and no secret is passed to the called workflow.
pull_request_target: # zizmor: ignore[dangerous-triggers]
types: [opened, synchronize, reopened, ready_for_review]
issue_comment:
types: [created]
permissions: {}
jobs:
review:
if: >-
github.event_name == 'pull_request_target' ||
(github.event.issue.pull_request && startsWith(github.event.comment.body, '/review'))
# Base-owned policy; the head is fetched only as data inside the sandbox.
uses: cgwalters-forge/actions/.github/workflows/cgwalters-review.yml@b590d3260a18cc59ceb3eb850e62fb62ff967d37 # main, agentic-job v0.6.16 (actions#67)
# The union of the wrapper's job grants: statuses for its compatibility
# status, id-token for the tailnet join. No SAFE_OUTPUTS_PAT: the
# wrapper gives it only to apply, the comment fallback; real reviews
# submit with the job token.
permissions:
contents: read
issues: read
pull-requests: write
actions: read
id-token: write
statuses: write