Skip to content

Git Repository Trigger Fails to Run when Referencing a Step that uses GitHub App Authentication with a Private Repository #10208

Description

@briggs-octo

Severity

1 report

Version

2026.3.14709

Latest Version

None

What happened?

When configuring a Git Repository Trigger that references a step using the GitHub App for authentication with a private repository, the trigger fails to run with an error similar to the following in the Process Git Triggers task log:

20:23:49 Error | Error resolving Git ref 'main' in repository 'https://github.com/org/repo_name.git': Repository not found.
Image

Reproduction

  1. Set up a test project
  2. Add a step that uses Git as a script source, where the repo is private, and a GitHub App connection is used for authentication
  3. Add a Git Repository trigger that references the step above.
  4. Make a commit to the repo, and note that the trigger does not run successfully during the next run of Process Git Triggers (can somewhat be seen via the trigger page, or by checking this task log directly for more direct info).

Error and Stacktrace

20:23:49 Error | Error resolving Git ref 'main' in repository 'https://github.com/org/repo_name.git': Repository not found.

More Information

No response

Workaround

Use Git Credentials for authentication on the step (rather than a GitHub App connection)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugThis issue represents a verified problem we are committed to solving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions