Skip to content

GitHub App can only list public containers from repo #3283

Open
@eleftherias

Description

@eleftherias

GitHub fine grained tokens, including the tokens generated by a GitHub Apps, do not have access to list all the containers associated with a repository.

In Minder's implementation of the GitHub App provider, we use a fallback token in order to list the containers associated with a repository. https://github.com/stacklok/minder/blob/f716baa8d6e97a5ef246c8afe1176dc8c44b07df/internal/providers/github/common.go#L169
However, this token only has access to public packages on public repos.

This is a limitation of the GitHub packages API.
There is currently no issue in the GitHub backlog that is tracking this feature, but is related to github/roadmap#558.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Nice to fix: non-critical items that should be evaluated and planned during issue triageblockedAn issue that cannot be worked on until a dependency is resolvedgoPull requests that update Go code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions