Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow certain requests to be unauthenticated. #2680

@eugene-babichenko

Description

@eugene-babichenko

Describe the feature or problem you’d like to solve

This CLI is extremely useful when doing automation, but there is one pitfall. It looks like all requests are required to be authenticated, while the GitHub API doesn't place such requirement. For example, when doing gh release download for a public repo. I could grab the list of releases by curl-ing the releases endpoint of that repo and downloading the asset could be done without authenticating the request as well.

Proposed solution

The idea is to allow making certain requests (I think these would be read-only requests) to public repos without authentication. This will make it easier to use the CLI in environments different from GH Actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIpitchpitched internally for prioritisation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions