The production identity should be an organization-owned GitHub App named AsterCommunity Automation. The App is an authorization boundary, not a webhook service requirement.
| Permission | Access | Purpose |
|---|---|---|
| Actions | Read | Read workflow runs and jobs for aggregate diagnostics |
| Checks | Read and write | Create and update the aggregate gate |
| Contents | Read | Checkout the trusted repository configuration |
| Issues | Read and write | Labels, diagnostic comments, linked Issue lifecycle, CI incidents |
| Pull requests | Read and write | Pull request metadata and comments |
| Metadata | Read | GitHub App baseline permission |
forge-adoption-issues runs in AsterForge but writes to the subscribed downstream repositories, so its token is created with owner and repositories naming those subscribers and only contents: read and issues: write. The App installation must cover every subscriber.
Administration, workflows, secrets, members, deployments, and contents write are outside the contract.
The App still does not receive merge, review-dismissal, workflow-write, or contents-write authority. Readiness checks and release dashboards publish facts; GitHub rulesets and maintainers enforce merge and release policy.
- Create the App under
AsterCommunitywith webhooks disabled. - Install it on selected repositories, starting with
AsterDrive. - Store the App ID as the organization variable
ASTER_AUTOMATION_APP_ID. - Store one private key as the organization secret
ASTER_AUTOMATION_PRIVATE_KEYwith selected-repository access. - Generate a short-lived installation token inside trusted workflows using a commit-pinned
actions/create-github-app-tokenaction. - Pass only the generated token to this action.
Installation tokens expire automatically. The private key never enters repository files, pull request contexts, logs, comments, artifacts, or action outputs.
A GitHub App may update only Check Runs created by that App. Before replacing github.token with the installation token:
- Terminate all pending gates created by
github-actionson closed pull requests. - Record any open pull request HEAD with an existing gate.
- Switch token identity.
- Synchronize open pull requests so the new App creates the authoritative gate for later HEADs.
- Verify label actor, comment author, Check Run App slug, and recovery behavior.
Keep the Actions-based execution model until centralized webhooks have a proven need for durable delivery, retries, queues, and operational ownership.