Skip to content

Commit 4fdc959

Browse files
committed
Wire parity autofix to existing OVVO_SYNC_TOKEN / PARITY_APP_TOKEN secrets
Use the repo's existing GitHub PAT secrets instead of a new PARITY_DISPATCH_TOKEN: OVVO_SYNC_TOKEN emits the inspect->autofix repository_dispatch, PARITY_APP_TOKEN opens the fix PR. Document that ANTHROPIC_API_KEY is a separate Anthropic credential and is still required.
1 parent 294a6af commit 4fdc959

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/inspect-r-api-update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
if: steps.payload.outputs.fresh_cache != 'true'
132132
shell: bash
133133
env:
134-
DISPATCH_TOKEN: ${{ secrets.PARITY_DISPATCH_TOKEN }}
134+
DISPATCH_TOKEN: ${{ secrets.OVVO_SYNC_TOKEN }}
135135
run: |
136136
set -euo pipefail
137137
# The cache-based gates below only prove parity against the committed
@@ -143,7 +143,7 @@ jobs:
143143
exit 0
144144
fi
145145
if [ -z "${DISPATCH_TOKEN:-}" ]; then
146-
echo "PARITY_DISPATCH_TOKEN not set; skipping auto-chain to parity-autofix."
146+
echo "OVVO_SYNC_TOKEN not set; skipping auto-chain to parity-autofix."
147147
echo "Run parity-autofix manually with r_commit=${{ steps.payload.outputs.r_commit }} r_version=${{ steps.payload.outputs.r_version }}."
148148
exit 0
149149
fi

docs/parity_autofix.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,18 @@ workflows:
7777

7878
`inspect-r-api-update` chains to `parity-autofix` via a `repository_dispatch`,
7979
which the default `GITHUB_TOKEN` cannot emit. To enable the automatic chain, add
80-
a PAT with `contents: write` (or `repo`) scope as the `PARITY_DISPATCH_TOKEN`
81-
secret. Without it, `inspect-r-api-update` prints the manual trigger command and
82-
you run `parity-autofix` yourself via **workflow_dispatch** (inputs: `r_commit`,
83-
`r_version`).
80+
a fine-grained PAT with **Contents: read and write** on `NNS-python` as the
81+
`OVVO_SYNC_TOKEN` secret. Without it, `inspect-r-api-update` prints the manual
82+
trigger command and you run `parity-autofix` yourself via **workflow_dispatch**
83+
(inputs: `r_commit`, `r_version`).
84+
85+
## Secret summary
86+
87+
| Secret | Kind | Used for | Required? |
88+
| --- | --- | --- | --- |
89+
| `ANTHROPIC_API_KEY` | Anthropic key (`sk-ant-…`, from console.anthropic.com) | authenticate the agent to Claude | **yes** — a GitHub token does not work here |
90+
| `PARITY_APP_TOKEN` | GitHub fine-grained PAT (Contents R/W, Pull requests R/W) | open the fix PR so CI runs on it | recommended |
91+
| `OVVO_SYNC_TOKEN` | GitHub fine-grained PAT (Contents R/W) | emit the `inspect -> autofix` `repository_dispatch` | optional (manual trigger otherwise) |
8492

8593
## Model
8694

0 commit comments

Comments
 (0)