Capture error details of "remote unpack failed"
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- csharp, git
- Área
- developer-experience, tooling
Línea de trabajo
Comience con el callback PushOptions.OnPushStatusError y la ruta del fallo de remote unpack descrita en el issue. Reproduzca el rechazo del escaneo de secretos de Azure DevOps y rastree dónde se pierde el mensaje remoto detallado. Se considera completado cuando los llamadores pueden recibir los detalles del fallo de remote unpack, incluido el mensaje VS403654, en lugar de solo la excepción genérica.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Reproduction steps
- create Azure DevOps repo with security rules enabled
- create commit which violates server rules. For example
appsettings.json
{
"Parameters": {
"note": "this will trigger secret warning in the Azdo push, which is what I'm testing for",
"secret": "opensesame"
}
}
I configure the repo.Network.Push this way
var po = new PushOptions()
{
CredentialsProvider = (_, _, _) => AzdoCreddentials,
OnPushStatusError = (reason) =>
{
mainLogger.Log(LogLevel.Error, "Push failed with {}", reason.Message);
},
};
Expected behavior
Make PushOptions.OnPushStatusError or another callback to receive details of remote unpack failure similar to git CLI
Specifically error: remote unpack failed: error VS403654: The push was rejected because it contains one or more secrets. in the log below.
PS C:\Dev\dotnet-mirroring\sandbox\pavelsavara-runtime> git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 20 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 406 bytes | 406.00 KiB/s, done.
Total 3 (delta 1), reused 3 (delta 1), pack-reused 0 (from 0)
remote: Analyzing objects... (3/3) (27 ms)
remote: Validating commits... (1/1) done (0 ms)
remote: Checking for credentials and other secrets... done (59 ms)
error: remote unpack failed: error VS403654: The push was rejected because it contains one or more secrets.
To https://dev.azure.com/dnceng/internal/_git/pavelsavara-runtime
! [remote rejected] browser_firefox_shm -> browser_firefox_shm (VS403654: The push was rejected because it contains one or more secrets.
Resolve the following secrets before pushing again. For help, see https://aka.ms/1ESSecretScanning.
Actual behavior
LibGit2Sharp.LibGit2SharpException: unpacking the sent packfile failed on the remote with no more details
Version of LibGit2Sharp (release number or SHA1)
0.29.0
Operating system(s) tested; .NET runtime tested
- windows 10
- SDK 9.0.100-preview.1.24101.2
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de libgit2/libgit2sharp
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
libgit2/libgit2sharp#2193 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
libgit2/libgit2sharp#2192 · 1 comentario ·
-
Website is down Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
libgit2/libgit2sharp#2191 · 2 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
libgit2/libgit2sharp#2189 · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
libgit2/libgit2sharp#2187 · 2 comentarios ·
Todos los issues de libgit2/libgit2sharp
Issues similares
-
type/automation type/tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
t/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
area:auth FE mvp P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
klasolsson81/jobbliggaren#1788 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
OrchardCMS/OrchardCore#19919 · 2 comentarios ·
-
app-frontend: parked task URL throws 'Unknown task type' once the process moves on to a signing task Abiertoarea/process kind/bug squad/flyt squad/utforming
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Altinn/altinn-studio#20570 ·