Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

sourcelink test in private github repo #371

@maxild

Description

@maxild

Just enabled SourceLink for a nupkg build with code in private github repo. Running the SourceLink V3 dotnet global tool

sourcelink test .\artifacts\Brf.HisClientFx.0.2.0-aGH-6-0001.nupkg -u  personal_access_token

give me a lot of 404 errors

.
.
https://raw.githubusercontent.com/maxild/HisClientFx/72acf10621facd60df91ef2f4ca2c9720e71e2b7/src/Brf.HisClientFx/Polyfills/ReflectionPolyfillExtensions.cs
error: url failed NotFound: Not Found
.
.

I can download source files with curl without getting 404 errors

curl --header "Authorization: token personal_access_token" --location "https://raw.githubusercontent.com/maxild/HisClientFx/72acf10621facd60df91ef2f4ca2c9720e71e2b7/src/Brf.HisClientFx/Polyfills/ReflectionPolyfillExtensions.cs"

We both now that requests that require authentication will return 404 on Github. So why does the tool fail to authenticate. Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions