-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add JSON Schema validations for the OpenSSF Scorecard results
- Loading branch information
1 parent
6b06409
commit 42e905d
Showing
3 changed files
with
115 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"title": "OpenSSF Scorecard Result", | ||
"description": "OpenSSF Scorecard Result for a project", | ||
"type": "object", | ||
"properties": { | ||
"date": { | ||
"type": "string", | ||
"format": "date-time", | ||
"examples": ["2024-12-11T23:55:17Z"] | ||
}, | ||
"repo": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"examples": ["github.com/octocat/Hello-World"] | ||
}, | ||
"commit": { | ||
"type": "string", | ||
"examples": ["e739f419e56442b754e4fea6dbcf98c1c8d00dda"] | ||
} | ||
} | ||
}, | ||
"scorecard": { | ||
"type": "object", | ||
"properties": { | ||
"version": { | ||
"type": "string", | ||
"examples": ["v5.0.0"] | ||
}, | ||
"commit": { | ||
"type": "string", | ||
"examples": ["ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4"] | ||
} | ||
} | ||
}, | ||
"score": { | ||
"type": "number", | ||
"examples": [6] | ||
}, | ||
"checks": { | ||
"type": ["array", "null"], | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"details": { | ||
"type": ["string", "null"], | ||
"examples": [null] | ||
}, | ||
"score": { | ||
"type": "number", | ||
"examples": [10] | ||
}, | ||
"reason": { | ||
"type": "string", | ||
"examples": ["no binaries found in the repo"] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"examples": ["Binary-Artifacts"] | ||
}, | ||
"documentation": { | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"format": "uri", | ||
"examples": [ | ||
"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#binary-artifacts" | ||
] | ||
}, | ||
"short": { | ||
"type": "string", | ||
"examples": [ | ||
"Determines if the project has generated executable (binary) artifacts in the source repository." | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|