github / github/dependency-submission-toolkit
Add a field for dependency resolution errors
- Lenguaje dominante
- TypeScript
- Estrellas
- 62
- Forks
- 18
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
First of all, I'm sorry if this is not the right place to file this as it's more about the JSON schema for the submissions API, but I could not find a more fitting project to file this for.
Coming from [here](https://github.com/gradle/github-dependency-graph-gradle-plugin/issues/140) my ask is to add a field to the [JSON body of the submission API](https://docs.github.com/en/rest/dependency-graph/dependency-submission?apiVersion=2022-11-28#create-a-snapshot-of-dependencies-for-a-repository) that can be used to document any failures during dependency resolution.
Because currently, there seems to be no way to indicate to the API that the dependency resolution process that created the JSON might have been unable to resolve some dependencies (maybe due to temporary network issues), and thus the list of submitted dependencies might be incomplete. This is a problem if the user relies on the dependencies and resulting SBOM to be complete. On the other hand, not submitting the dependency graph at all if just a single dependency failed to resolve (maybe also due to misconfiguration on the project side) is probably not a good solution either.
So IMO the best solution is to simply be transparent and allow the dependency resolver to say so if there were any issues in dependency resolution. The GitHub web UI could then show these errors as part of the dependency graph so that he user knows to take the results "with a grain of salt".
Guía de contribución
Línea de trabajo
Comienza con la documentación del cuerpo JSON y de la dependency-submission API enlazada en el issue y, después, lee el issue relacionado del Gradle plugin. Determina cómo deben representarse y notificarse los fallos de resolución de dependencias para que las submissions incompletas puedan distinguirse; el trabajo estará terminado cuando el esquema y el comportamiento esperado estén acordados y documentados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- api, backend-api-design
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100