Verify schema versions are correct
Purpose
Verify that an engineer cannot accidentally overwrite a previously released schema with a new definition.
Implementation
This is achieved by the following:
- Print in the Job log all of the versions detected (CHANGELOG,
src
,dist
) - Verify that the
self.version
insrc/security-report-format.json
matchesself.version
in thedist
schemas - Verify that the
self.version
insrc/security-report-format.json
matches that of the latest version in the CHANGELOG - If the latest version in the CHANGELOG has already been released, download the released schemas, and diff with the local
dist/
schemas to ensure the files are the same.
Example Job output
Edited by Cameron Swords