Skip to content

bug: github_repositories table, template_repository column always returns null #21802

@NovemberTang

Description

@NovemberTang

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

With GitHub as a source, and postgres as a destination, all repositories in the github_repositories table have an empty template_repository column.

Expected Behavior

When syncing github_repositories, I would expect to see that repositories that are based on templates to have a populated template_repository field

CloudQuery (redacted) config

kind: source
spec:
  name: github
  path: cloudquery/github
  version: v14.2.0
  tables:
    - github_repositories
    - github_repository_branches
    - github_repository_collaborators
    - github_repository_custom_properties
    - github_repository_sboms
    - github_workflows
  skip_dependent_tables: true
  destinations:
    - postgresql
  spec:
    concurrency: 1000
    orgs:
      - <ORG_NAME>
    app_auth:
      <AUTH>
    include_archived_repos: true
---
kind: destination
spec:
  name: postgresql
  registry: cloudquery
  path: cloudquery/postgresql
  version: v8.13.0
  write_mode: overwrite-delete-stale
  migrate_mode: forced
  send_sync_summary: true
  spec:
    connection_string: <CONNECTION_STRING>

Steps To Reproduce

  1. Create a template repository
  2. Use that template to generate a second repository
  3. Use the GitHub rest API to verify that a repository was generated from a template (using the GitHub CLI, this can be done using gh repo view <OWNER>/<REPO> --json templateRepository)
  4. Collect github_repositories for that repo and verify that the template field is empty

CloudQuery (redacted) logs

top level table resolver started
table sync finished

one of these for every repo. No error messages logged

CloudQuery version

6.30.0

Additional Context

I've checked the release notes for every version of the GitHub plugin since 14.2.0, and can't find anything relating to the column, so I assume this is still active as of 14.6.

If there is a more appropriate place for me to submit this bug report, please let me know.

Pull request (optional)

  • I can submit a pull request

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions