ossf / scorecard-webapp

Website and API for OpenSSF Scorecard
https://scorecard.dev
Apache License 2.0
22 stars 27 forks source link

OpenSSF Scorecard report viewer does not handle nested gitlab groups correctly #700

Closed stexandev closed 3 weeks ago

stexandev commented 3 weeks ago

Attention: this is not a duplicate of #511

Describe the bug

When trying to display the result of a scan for a gitlab repository that uses multi-level groups, the result can not be retrieved because the current implementation (split on "/") only respects the first three parts of the URL.

Reproduction steps Steps to reproduce the behavior:

  1. Load a result for a repo with multi-level groups into the viewer, e.g. `/index.html?uri=gitlab.gwdg.de%2Fsubugoe%2Femo%2Ftido
  2. The result the viewer tries to fetch then is for gitlab.gwdg.de/subugoe/emo

Expected behavior

It is exspected that the viewer can handle multi-level groups and shows the results for such repos.

Additional context Add any other context about the problem here.

spencerschrock commented 3 weeks ago

Attention: this is not a duplicate of https://github.com/ossf/scorecard-webapp/issues/511

I agree it's a separate issue in the sense that it should try to fetch the correct repo, but ultimately it's blocked on #511.