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
2 changes: 1 addition & 1 deletion workspaces/scorecard/app-config.local.EXAMPLE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ auth:
catalog:
locations:
- type: file
target: ../../examples/all-scorecards-location.yaml
target: ../../examples/all-scorecard-locations.yaml
rules:
- allow: [Component]
- type: file
Expand Down
2 changes: 1 addition & 1 deletion workspaces/scorecard/app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ catalog:
- allow: [Component, System, Group, Resource, Location, Template, API]
locations:
- type: file
target: ../../examples/all-scorecards-location.yaml
target: ../../examples/all-scorecard-locations.yaml
rules:
- allow: [Component]
- type: file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
name: all-scorecards-location
name: all-scorecard-locations

description: A collection of all the scorecards
spec:
targets:
- ./components/all-scorecards-service-different-owner.yaml
- ./components/all-scorecards.yaml
- ./components/dependabot-scorecard-only.yaml
- ./components/github-scorecard-only.yaml
- ./components/jira-scorecard-only.yaml
- ./components/no-scorecards.yaml
- ./components/openssf-scorecard-only.yaml
- ./components/sonarqube-scorecard-only.yaml
- ./components/all-scorecards.yaml
- ./components/no-scorecards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Component with both GitHub and Jira Scorecards with not specified owner
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: all-scorecards-service-different-owner
annotations:
github.com/project-slug: redhat-developer/rhdh-plugins
backstage.io/source-location: url:https://github.com/redhat-developer/rhdh-plugins
jira/project-key: RSPT
jira/label: JupiterTeam
spec:
type: service
owner: rhdh-team
lifecycle: production
21 changes: 2 additions & 19 deletions workspaces/scorecard/examples/components/all-scorecards.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
---
# Component with both GitHub and Jira Scorecards
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: all-scorecards-service
name: all-scorecards
annotations:
github.com/project-slug: redhat-developer/rhdh-plugins
backstage.io/source-location: url:https://github.com/redhat-developer/rhdh-plugins
jira/project-key: RSPT
spec:
type: service
owner: user:development/guest
lifecycle: production
---
# Component with both GitHub and Jira Scorecards with not specified owner
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: all-scorecards-service-different-owner
annotations:
github.com/project-slug: redhat-developer/rhdh-plugins
backstage.io/source-location: url:https://github.com/redhat-developer/rhdh-plugins
jira/project-key: RSPT
jira/label: JupiterTeam
spec:
type: service
owner: rhdh-team
owner: group:development/guests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we wanted to leave at least one scorecard to have owner as a user instead of group to cover that use case. It doesn't necessarily have to be all-scorecards.yaml. Is there any other scorecard covering it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. But that was the problem why the catalog switches to show just this catalog.

But I can investigate why it doesn't show everything because the guest user is in both groups.

Thanks for the feedback, will take a look.

lifecycle: production
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
# Component with OpenSSF Scorecard
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
Expand Down
41 changes: 0 additions & 41 deletions workspaces/scorecard/examples/components/entities.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# Component with GitHub Scorecard only
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: github-scorecard-only-service
name: github-scorecard-only
annotations:
github.com/project-slug: redhat-developer/rhdh-plugins
backstage.io/source-location: url:https://github.com/redhat-developer/rhdh-plugins
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# Component with Jira Scorecard only
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: jira-scorecard-only-service
name: jira-scorecard-only
annotations:
jira/project-key: RSPT
spec:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
# Component with no Scorecards
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: no-scorecards-service
name: no-scorecards
spec:
type: service
owner: group:development/guests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
# Component with SonarQube Scorecard only
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
Expand Down
Loading