Scorecard is a backstage plugin and supports multiple metric, grouped as modules in folder workspaces/scorecard/plugins.
There are already modules that support GitHub, OpenSSF, SonarQube. Add a new module for GitLab, called gitlab.
Similar to the github module it should use the existing Backstage scm configuration for gitlab.
All metrics providers should filter for entities with annotation gitlab.com/project-slug.
For these entities it should call the GitLab API to populate these metrics.
These for issues and merge requests:
- Open issues (current count)
- Opened issues that was opened in the last 7 days
- Closed issues that was closed in the last 7 days
- Open merge requests (current count)
- Opened merge request that was opened in the last 7 days
- Closed merge requests was was closed or merged in the last 7 days
These for pipelines and jobs:
- Number of started pipelines and jobs in the last 7 days.
- Number of successfully finished pipelines and jobs in the last 7 days. Ignore these which are pending, running, canceled, etc.9, Number of failed pipelines and jobs in the last 7 days. Ignore these which are pending, running, canceled, etc.
- Two metrics for Ratio of successful vs successful+failed pipelines and jobs, once for the last 7 days and one for the last 24 hours. Ignore these which are pending, running, canceled, etc.
Scorecard is a backstage plugin and supports multiple metric, grouped as modules in folder
workspaces/scorecard/plugins.There are already modules that support GitHub, OpenSSF, SonarQube. Add a new module for GitLab, called
gitlab.Similar to the github module it should use the existing Backstage scm configuration for gitlab.
All metrics providers should filter for entities with annotation
gitlab.com/project-slug.For these entities it should call the GitLab API to populate these metrics.
These for issues and merge requests:
These for pipelines and jobs: