Skip to content

Verify schema versions are correct

Cameron Swords requested to merge verify-versions-are-correct into master

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 in src/security-report-format.json matches self.version in the dist schemas
  • Verify that the self.version in src/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

Screenshot_2020-04-15_14.12.07

Edited by Cameron Swords

Merge request reports