dotnet / dotnet/sourcelink

Access Private Repo Github don't send authentification

Open
#865 7 comments 5 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

### Description

I have a problem to debug and step into the source code for my package.
SourceLink is not working properly for my own package (see attached screenshot).

---
### Package Information

![image](https://user-images.githubusercontent.com/99411879/187462195-5221cd98-f740-4217-be1f-9995b0c9861a.png)

---
### Basic Information

- IDE: VSCODE

---
### Configuration Package

```


net6.0
enable
disable


$(DefaultItemExcludes);PublishWebDeploy*\**;.logs\**


********
Davy L
2022


true
false
https://github.com/***********/Ginkoia.API.Common
true
snupkg

portable


$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))






v


latest


true
true
true
true
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb



runtime; build; native; contentfiles; analyzers; buildtransitive
all



runtime; build; native; contentfiles; analyzers; buildtransitive
all

```

---
### Configuration Consumer

launch.json

```
"justMyCode": false,
"symbolOptions": {
"searchMicrosoftSymbolServer": true,
"searchNuGetOrgSymbolServer": true,
},
"sourceLinkOptions": {
"*": { "enabled": false}
},
"suppressJITOptimizations": true,
"requireExactSource": false
```

---
### Error Message

```
// Le fichier source '\_\Ginkoia.Api.Common\Services\CollectionServicesExtensions.cs' est
// introuvable sur cet ordinateur. Le fichier PDB du module de ce fichier source contient
// des informations permettant de télécharger le fichier source via Source Link, mais la
// requête du débogueur visant à télécharger ce fichier source n'a pas abouti.
//
// Échec de la requête avec le code d'état HTTP 404 (NotFound).
//
// URL à partir de laquelle le fichier source va être téléchargé :
// https://raw.githubusercontent.com/********/Ginkoia.API.Common/055ebe11ac4755d397bdc36423f41c8a9f21a6f1/Ginkoia.Api.Common/Services/CollectionServicesExtensions.cs
//
// Pour plus d'informations sur Source Link et VS Code, consultez :
// https://aka.ms/VSCode-DotNet-SourceLink
```

---
### Acces by GitHub Web interface

- If I look at the raw for the commit in question from the web interface, I can get it.

```
https://raw.githubusercontent.com/********/Ginkoia.API.Common/055ebe11ac4755d397bdc36423f41c8a9f21a6f1/Ginkoia.Api.Common/Services/CollectionServicesExtensions.cs?token=xxxxx
```

- The only difference is that in the address the TOKEN is passed as a parameter,
but I don't know where and how sourcelink uses my PAT

# I don't know where my mistake is. Please help me

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.