8000 Show private repositories. · Issue #228 · backyourstack/backyourstack · GitHub
[go: up one dir, main page]

Skip to content

Show private repositories. #228

@flickz

Description

@flickz

During the proce 645F ss of looking into some issues with BYS organization profile, I found out private repositories are not fetched for authenticated users.

Thanks @znarf , he figured the api difference https://github.com/octokit/rest.js/issues/968, currently, we use repos.listForOrg and repos listForUser to fetch repositories for an organization and personal profile respectively. Both works perfectly for public repositories.

Fetching private repositories

The only way to fetch private repositories is with repos.list, which requires you're an authenticated user and you're analysing your own personal Github profile. This will list out personal repositories and ones you're associated with either as a collaborator or member of an organisation, which I think is an issue worth thinking about.
Take for instance, if Airbnb has a private repository within the organization repositories and a member of the organization wants to analyze the repository along with other public repos, the only way for the private repository to be fetched and analyzed will be if the user analyze his own profile with his username and not "airbnb", this will fetch personal private repositories and that of associated organizations, meaning, other repositories you don't want included or care about will be included. (Repositories search parameters can be tweak with but there is just no accurate way to achieve that https://developer.github.com/v3/repos/#list-your-repositories)

My suggested solution is, temporarily, I think private repositories should be analyzed as an anonymous file till we implement the ability for user to select / unselect repositories they want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0