Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-catalog': patch
---

Add catalog backend module for the scorecard plugin.
14 changes: 14 additions & 0 deletions workspaces/scorecard/app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,20 @@ scorecard:
frequency: { minutes: 5 }
timeout: { minutes: 10 }
initialDelay: { seconds: 10 }
catalog:
requiredAttributes:
options:
metrics:
title:
title: Title is required
description: Every component should have a human-readable title.
filter:
kind: Component
field: metadata.title
schedule:
frequency: { minutes: 5 }
timeout: { minutes: 10 }
initialDelay: { seconds: 10 }
filecheck:
fileExistence:
options:
Expand Down
2 changes: 2 additions & 0 deletions workspaces/scorecard/examples/all-scorecards-location.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ spec:
targets:
- ./components/all-scorecards-service-different-owner.yaml
- ./components/all-scorecards.yaml
- ./components/catalog-metadata-scorecard-with-title.yaml
- ./components/catalog-scorecard-without-title.yaml
- ./components/code-coverage-scorecard-only.yaml
- ./components/dependabot-scorecard-only.yaml
- ./components/github-scorecard-only.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: catalog-metadata-scorecard-with-title
title: Catalog Metadata Scorecard With Title
annotations:
scorecard.example: catalog-metadata
spec:
type: service
owner: group:development/guests
lifecycle: production
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: catalog-scorecard-without-title
annotations:
scorecard.example: catalog-metadata
spec:
type: service
owner: group:development/guests
lifecycle: production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
Loading
Loading