-
Notifications
You must be signed in to change notification settings - Fork 109
chore(scorecard): align examples to see all at once #3528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
christoph-jerolimov
wants to merge
1
commit into
redhat-developer:main
Choose a base branch
from
christoph-jerolimov:scorecard/align-examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...ard/examples/all-scorecards-location.yaml → ...ard/examples/all-scorecard-locations.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
14 changes: 14 additions & 0 deletions
14
workspaces/scorecard/examples/components/all-scorecards-service-different-owner.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
21
workspaces/scorecard/examples/components/all-scorecards.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| lifecycle: production | ||
2 changes: 0 additions & 2 deletions
2
workspaces/scorecard/examples/components/dependabot-scorecard-only.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
|
|
||
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
workspaces/scorecard/examples/components/github-scorecard-only.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
workspaces/scorecard/examples/components/jira-scorecard-only.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
workspaces/scorecard/examples/components/openssf-scorecard-only.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| --- | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: Component | ||
| metadata: | ||
|
|
||
2 changes: 0 additions & 2 deletions
2
workspaces/scorecard/examples/components/sonarqube-scorecard-only.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.