Skip to content

Regression with target-only checkout failing with explicit GitHub App checkout #59470

Closed

Description

@seesharprun

Target-only checkout is not usable with an explicitly configured GitHub App checkout in the v0.88.2 release.

This feature was requested to support sidecar workflows that need to check out a target repository without checking out the repository hosting the workflow.

Repro

permissions:
  contents: none
checkout:
  - repository: octo-org/target-repository
    path: target
    github-app:
      client-id: ${{ vars.TARGET_APP_CLIENT_ID }}
      private-key: ${{ secrets.TARGET_APP_PRIVATE_KEY }}
      owner: octo-org
      repositories:
        - target-repository

Actual behavior

GH-AW correctly suppresses the default checkout of the workflow repository, but it passes the workflow-level contents: none setting to actions/create-github-app-token for the target repository:

permission-contents: none

GitHub rejects the token request because GitHub App installation-token permissions must be read, write, or admin. The target checkout is skipped.

Expected behavior

  • permissions.contents: none suppresses only the default checkout of the workflow repository.
  • The explicit octo-org/target-repository checkout continues to run.
  • The target GitHub App token requests the permissions required for that checkout, such as contents: read.

This issue blocks use of the target-only checkout feature with explicit GitHub App authentication.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions