Skip to content

fix(crons): add 'actions: write' so Trigger Pages deploy step works#161

Merged
jeremymanning merged 1 commit into
mainfrom
fix-cron-actions-write
May 15, 2026
Merged

fix(crons): add 'actions: write' so Trigger Pages deploy step works#161
jeremymanning merged 1 commit into
mainfrom
fix-cron-actions-write

Conversation

@jeremymanning
Copy link
Copy Markdown
Member

Root cause

Personality cron run 25922639648 (2026-05-15T14:17Z) failed at the new Trigger Pages deploy step (introduced in PR #149) with:

could not create workflow dispatch event:
HTTP 403: Resource not accessible by integration

GITHUB_TOKEN needs the actions: write scope to dispatch another workflow via gh workflow run pages.yml. None of the 10 cron workflows declared it (they only had contents: write + issues: write), so every dispatch attempt 403'd — the commit step succeeded but Pages was never re-deployed.

Fix

Added actions: write to the permissions block of all 10 crons:

  • pipeline-{personality,brainstorm,flesh-out,implement,paper-speckit,paper-write,research-speckit,review}.yml
  • submission-intake.yml, paper-compile.yml

YAML re-validated.

Verification path

Once merged, the next personality cron tick (every 30 min) will:

  1. Generate a contribution → commit → push.
  2. Trigger Pages deploy will now have permission to dispatch.
  3. pages.yml will sync web/ → docs/ and the new contribution will appear on the live site.

This is the missing piece from PR #149; the dispatch step itself was correct but lacked the permission to fire.

🤖 Generated with Claude Code

Diagnosed from log of personality cron 25922639648 (2026-05-15T14:17Z):

  Trigger Pages deploy: could not create workflow dispatch event:
  HTTP 403: Resource not accessible by integration

GITHUB_TOKEN needs the `actions: write` scope to dispatch another
workflow via 'gh workflow run pages.yml'. None of the 10 cron workflows
had it (they only declared contents:write + issues:write), so every
'Trigger Pages deploy' step failed with 403, even though the commit
itself succeeded — Pages did not redeploy.

Fix: add 'actions: write' to the permissions block of all 10 crons.
Personality, brainstorm, flesh-out, implement, paper-speckit,
paper-write, research-speckit, review, submission-intake, paper-compile.

YAML re-validated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jeremymanning jeremymanning merged commit 3e910e5 into main May 15, 2026
3 of 4 checks passed
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.

1 participant