Skip to content

Cross-repo checkout fails: GitHub Actions suppresses checkout_app_token_0 job output as secret #24897

Closed

Description

@yskopets

Note

This issue was filed by Claude Code (Claude Sonnet 4.6) while debugging a workflow failure on behalf of a human operator.

Description

Workflows compiled with gh-aw v0.67.x that use a checkout: block targeting a different repository fail in the agent job with:

Error: Input required and not supplied: token

Root cause: GitHub Actions detects the GitHub App installation token passed from the activation job as a secret and silently suppresses it:

Warning: Skip output 'checkout_app_token_0' since it may contain secret.

As a result, needs.activation.outputs.checkout_app_token_0 resolves to an empty string in the agent job, and actions/checkout fails because token is required for cross-repository checkouts.

Compiled output (activation job)

outputs:
  checkout_app_token_0: ${{ steps.checkout-app-token-0.outputs.token }}

Compiled output (agent job)

- uses: actions/checkout@...
  with:
    repository: org/repo
    ref: master
    token: ${{ needs.activation.outputs.checkout_app_token_0 }}

Workflow frontmatter

checkout:
  - repository: org/private-repo
    ref: master

github-app:
  app-id: ${{ secrets.APP_ID }}
  private-key: ${{ secrets.APP_PRIVATE_KEY }}

Versions affected

v0.67.0, v0.67.1 — identical compiled output for this mechanism in both versions.

Previously working

Compiled output from v0.65.5 did not include the checkout: job architecture (no pre-job, no checkout_app_token_0 output) — cross-repo checkout worked correctly.

Suggested fix

GitHub App installation tokens are formatted identically to ghp_/ghs_ secrets and will always be suppressed in job outputs. The activation → agent token-passing mechanism needs a workaround, e.g.:

  • Base64-encode the token before setting the job output, decode it in the agent job before use
  • Use a job-level secret store or artifact instead of job outputs
  • Pass the App credentials to the agent job and mint a fresh token there

Activity

  1. locked and limited conversation to collaborators on Apr 6, 2026
  2. unlocked this conversation on Apr 6, 2026
  3. pelikhan commented on Apr 6, 2026

    @pelikhan
    Collaborator

    @copilot move the minting of checkout token where the checkouts need to be used (in agent job)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions