Skip to content

feat(workflow): publish docs PRs with GitHub App credentials and run on WP Codebox v0.34.0 - #196

Merged
chubes4 merged 1 commit into
mainfrom
feat/195-publish-app-credentials
Nov 25, 2026
Merged

chubes4 merged 1 commit into
mainfrom
feat/195-publish-app-credentials

Conversation

@chubes4

@chubes4 chubes4 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #195

What

  • New optional secrets PUBLISH_APP_ID / PUBLISH_APP_PRIVATE_KEY, forwarded to WP Codebox run-agent-task.yml as ACCESS_APP_ID / ACCESS_APP_PRIVATE_KEY. WP Codebox v0.34.0 (feat(agent-task): mint GitHub App installation tokens from app credentials wp-codebox#2596) mints a GitHub App installation token inside the agent job, so docs PRs open as the app and trigger the consumer's pull_request CI.
  • ACCESS_TOKEN is now forwarded as ${{ secrets.PUBLISH_TOKEN }} only. Forwarding github.token would take precedence over the minted app token. With nothing set, WP Codebox falls back to github.token itself, so same-repo behavior is unchanged (cross-repo publication isn't used by Docs Agent).
  • WP Codebox pin bumped v0.33.7 → v0.34.0 (9fce8a758b44109b86da22db68a1b6c801bdd6bb), with the release asset digests in tests/wp-codebox-release.fixture.json recomputed from the published v0.34.0 assets. The regression-run reference fields in the fixture are unchanged.
  • README and workflow README document app credentials as the way to get CI on docs PRs. PUBLISH_TOKEN stays as the explicit override.

Verification

With WP_CODEBOX_DIR at the v0.34.0 checkout, all pass: validate-docs-agent-packages, validate-docs-agent-completion-contract, validate-external-native-package-sources, validate-wp-codebox-run-agent-task-contract, repair-docs-links-smoke.

Process note

Finalized outside Homeboy. Cook agent-task-1b9bc114-4d5b-4916-993c-6584105ce53a sat in Lab admission for ~3.5h due to host pressure. Chris authorized a direct fallback. The change was made in an isolated clone/branch, and the deterministic checks above were run. The cook was cancelled.

AI assistance: Extra Chill Bot (Claude).

…on WP Codebox v0.34.0

- add optional PUBLISH_APP_ID / PUBLISH_APP_PRIVATE_KEY secrets, forwarded to
  WP Codebox as ACCESS_APP_ID / ACCESS_APP_PRIVATE_KEY; WP Codebox v0.34.0
  mints an installation token so docs PRs open as the app and trigger
  pull_request CI (Automattic/wp-codebox#2596)
- forward only an explicit PUBLISH_TOKEN as ACCESS_TOKEN; forwarding
  github.token would override the minted app token. WP Codebox owns the
  github.token fallback.
- pin WP Codebox v0.34.0 (9fce8a7) with its published asset digests
- document app credentials as the way to get CI on docs PRs

Closes #195

AI assistance: Extra Chill Bot (Claude), direct fallback authorized by Chris after the Homeboy Lab refused Cook admission for hours.
@chubes4
chubes4 merged commit ee333d5 into main Nov 25, 2026
3 checks passed
chubes4 added a commit to Extra-Chill/extrachill that referenced this pull request Nov 25, 2026
…1824)

Pin Docs Agent ee333d5 (Automattic/docs-agent#196, WP Codebox v0.34.0) and
pass HOMEBOY_APP_ID / HOMEBOY_APP_PRIVATE_KEY as PUBLISH_APP_ID /
PUBLISH_APP_PRIVATE_KEY so docs PRs open as homeboy-ci and trigger
pull_request CI. Drop the never-set DOCS_PUBLISH_TOKEN.

Closes #1800

AI assistance: Extra Chill Bot (Claude).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maintain-docs: accept GitHub App credentials for docs PR publication

1 participant