-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scorecard: use TestList for output, exit 1 on test failure
- Loading branch information
1 parent
e4f0d86
commit 800649e
Showing
19 changed files
with
299 additions
and
244 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
# entries is a list of entries to include in | ||
# release notes and/or the migration guide | ||
entries: | ||
- description: > | ||
Changed scorecard text and json output to use a `v1alpha3.TestList` | ||
instead of aggregating all test results under a single | ||
`v1alpha3.Test` and set exit status to 1 when a test fails. | ||
kind: "change" | ||
breaking: true | ||
migration: | ||
header: Alpha scorecard output API updates | ||
body: | | ||
Update any scripts interpretting the scorecard output to | ||
understand the v1alpha3 TestList format. | ||
This file contains 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 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
12 changes: 4 additions & 8 deletions
12
internal/scorecard/alpha/examples/custom-scorecard-tests/bundle/tests/scorecard/config.yaml
This file contains 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,19 +1,15 @@ | ||
tests: | ||
- name: "customtest1" | ||
image: quay.io/username/custom-scorecard-tests:dev | ||
entrypoint: | ||
- image: quay.io/username/custom-scorecard-tests:dev | ||
entrypoint: | ||
- custom-scorecard-tests | ||
- customtest1 | ||
labels: | ||
suite: custom | ||
test: customtest1 | ||
description: an ISV custom test | ||
- name: "customtest2" | ||
entrypoint: | ||
- image: quay.io/username/custom-scorecard-tests:dev | ||
entrypoint: | ||
- custom-scorecard-tests | ||
- customtest2 | ||
image: quay.io/username/custom-scorecard-tests:dev | ||
labels: | ||
suite: custom | ||
test: customtest2 | ||
description: an ISV custom test |
This file contains 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 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 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 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
Oops, something went wrong.