Skip to main content

summary.yml

Post a Claude summary comment on newly opened issues.

The workflow runs claude-code-action authenticated with the CLAUDE_CODE_OAUTH_TOKEN secret. A read-only job writes the summary, and a separate job with issues: write posts it. If the secret is missing or the summary comes back empty, the workflow emits a notice and leaves the issue unchanged instead of failing the issue-open run.

Inputs

Input Description Type Default Required
model Claude model identifier. Letters, digits, and . _ : / - only. When empty, the action’s default model is used. string "" No

Secrets

Secret Description Required
CLAUDE_CODE_OAUTH_TOKEN OAuth token for claude-code-action. No

Permissions

Grant issues: write and contents: read.

Migrating from the endpoint input

The workflow no longer calls GitHub Models, which is retiring (gha#617, gha#1133). Delete with: endpoint: and the API_KEY and OPENAI_API_KEY secrets from the caller, drop models: read from its permissions, and pass secrets: inherit so the job receives CLAUDE_CODE_OAUTH_TOKEN.

Example

# Copy to .github/workflows/summary.yml in your repo.
# Posts a Claude summary comment on each newly opened issue.
# Needs the CLAUDE_CODE_OAUTH_TOKEN secret; without it the run is skipped with a notice.
# The calling job must grant issues:write + contents:read.
name: Summarize new issues

on:
  issues:
    types: [opened]

jobs:
  summary:
    permissions:
      issues: write
      contents: read
    uses: Morrison-Lab/gha/.github/workflows/summary.yml@v3
    secrets: inherit
    # with:
    #   model: claude-haiku-5-5

See examples/summary.yml for the full caller stub.