Skip to content

Commit 772481f

Browse files
committed
feat: improve OSSF Scorecard result schema
1 parent 42e905d commit 772481f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

__fixtures__/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,13 @@ const sampleOSSFScorecardResult = {
813813
}
814814
},
815815
{
816-
details: null,
817816
score: 10,
818817
reason: 'license file detected',
819818
name: 'License',
819+
details: [
820+
'Info: project has a license file: LICENSE:0',
821+
'Info: FSF or OSI recognized license: MIT License: LICENSE:0'
822+
],
820823
documentation: {
821824
url: 'https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#license',
822825
short: 'Determines if the project has defined a license.'

src/schemas/ossfScorecardResult.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
"type": "object",
4545
"properties": {
4646
"details": {
47-
"type": ["string", "null"],
48-
"examples": [null]
47+
"type": ["array", "null"],
48+
"items": {
49+
"type": "string"
50+
}
4951
},
5052
"score": {
5153
"type": "number",

0 commit comments

Comments
 (0)