Skip to content

[BUG] reports from git history don't work for private repo #215

Open
@FedeBev

Description

@FedeBev

issue

when running go run openapi-changes.go html-report on a private repo with the GH_TOKEN set as env variable, a 404 is returned.

Image

This is likely cause in github.go we try to download the file using a raw url from the commit response

r, _ = http.NewRequest(http.MethodGet, commit.Files[x].RawURL, nil)

Possible Solution

use Content API to get a download url with authentication token, we can then download the content from the retuned url

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions