Skip to content

Scaffolded genesis workflows missing permission-actions:read in App token creation #14

@genesis-dev-bot

Description

@genesis-dev-bot

Problem

All four scaffolded genesis workflows (genesis-evolver.yml, genesis-orchestrator.yml, genesis-events.yml, genesis-merge.yml) create GitHub App tokens via actions/create-github-app-token@v3 but omit permission-actions: read.

Project hit: the-gigi/butterfly

Symptom: Every gh run list call from inside an agent returns HTTP 403: Resource not accessible by integration. This means:

  • The evolver cannot read failed workflow runs as signals (one of its primary data sources)
  • The auto-merge workflow cannot verify CI status via API

Discovery: The evolver's scheduled review cycle tried to run gh run list --limit 20 and got 403 on every attempt.

Proposed fix

Add permission-actions: read to the actions/create-github-app-token@v3 step in all four genesis workflow templates:

- uses: actions/create-github-app-token@v3
  id: app-token
  with:
    app-id: ${{ secrets.GENESIS_APP_ID }}
    private-key: ${{ secrets.GENESIS_APP_PRIVATE_KEY }}
    permission-contents: write
    permission-issues: write
    permission-pull-requests: write
    permission-workflows: write
    permission-actions: read   # ADD THIS

This is a minimal, safe change — read-only access to Actions is needed by any agent that monitors CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions